Package davmail.exchange.ews
Class FileAttachment
java.lang.Object
davmail.exchange.ews.FileAttachment
File Attachment.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorFileAttachment(String name, String contentType, String content) Build file attachment. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetIsContactPhoto(boolean isContactPhoto) Exchange 2010 only: set contact photo flag on attachment.voidWrite XML content to writer.
-
Field Details
-
name
-
contentType
-
-
attachmentId
-
isContactPhoto
protected boolean isContactPhoto
-
-
Constructor Details
-
FileAttachment
public FileAttachment()Default constructor -
FileAttachment
Build file attachment.- Parameters:
name- attachment namecontentType- content typecontent- body as string
-
-
Method Details
-
write
Write XML content to writer.- Parameters:
writer- writer- Throws:
IOException- on error
-
setIsContactPhoto
public void setIsContactPhoto(boolean isContactPhoto) Exchange 2010 only: set contact photo flag on attachment.- Parameters:
isContactPhoto- contact photo flag
-