|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ComplexProperty
microsoft.exchange.webservices.data.Attachment
microsoft.exchange.webservices.data.FileAttachment
public final class FileAttachment
Represents a file attachment.
| Constructor Summary | |
|---|---|
protected |
FileAttachment(Item owner)
* Initializes a new instance. |
| Method Summary | |
|---|---|
byte[] |
getContent()
* Gets the content of the attachment into memory. |
protected InputStream |
getContentStream()
Gets the content stream.Gets the name of the file the attachment is linked to. |
String |
getFileName()
* Gets the name of the file the attachment is linked to. |
protected String |
getXmlElementName()
Gets the name of the XML element. |
boolean |
isContactPhoto()
Gets a value indicating whether this attachment is a contact photo. |
void |
load(OutputStream stream)
* Loads the content of the file attachment into the specified stream. |
void |
load(String fileName)
* Loads the content of the file attachment into the specified file. |
protected void |
setContent(byte[] content)
Sets the content. |
protected void |
setContentStream(InputStream contentStream)
Sets the content stream. |
protected void |
setFileName(String fileName)
Sets the file name. |
void |
setIsContactPhoto(boolean isContactPhoto)
Sets the checks if is contact photo. |
protected boolean |
tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
* Tries to read element from XML. |
protected void |
writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes elements and content to XML. |
| Methods inherited from class microsoft.exchange.webservices.data.Attachment |
|---|
canSetFieldValue, getContentId, getContentLocation, getContentType, getId, getIsInline, getLastModifiedTime, getName, getOwner, getSize, internalLoad, isNew, load, setContentId, setContentLocation, setContentType, setIsInline, setName, throwIfThisIsNotNew |
| Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
|---|
addOnChangeEvent, changed, clearChangeEvents, clearChangeLog, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, validate, writeAttributesToXml, writeToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected FileAttachment(Item owner)
owner - the owner| Method Detail |
|---|
protected String getXmlElementName()
protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
throws Exception
tryReadElementFromXml in class Attachmentreader - the reader
Exception - the exception
protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writeElementsToXml in class Attachmentwriter - the writer
Exception - the exception
public void load(OutputStream stream)
throws Exception
stream - the stream
Exception - the exception
public void load(String fileName)
throws Exception
fileName - the file name
Exception - the exceptionpublic String getFileName()
protected void setFileName(String fileName)
fileName - the new file nameprotected InputStream getContentStream()
protected void setContentStream(InputStream contentStream)
contentStream - the new content streampublic byte[] getContent()
protected void setContent(byte[] content)
content - the new content
public boolean isContactPhoto()
throws ServiceVersionException
ServiceVersionException - the service version exception
public void setIsContactPhoto(boolean isContactPhoto)
throws ServiceVersionException
isContactPhoto - the new checks if is contact photo
ServiceVersionException - the service version exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||