|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ExchangeFileAttachment
Represents a file attached to an Exchange item.
| Method Summary | |
|---|---|
byte[] |
getContent()
Returns the content of the attached file as a bytes array. |
java.io.InputStream |
getContentAsStream()
Returns an input stream that can be used to read the content of the attached file. |
void |
writeTo(java.io.File file)
Writes the content of the attachment to the specified file. |
void |
writeTo(java.io.OutputStream stream)
Writes the content of the attached file to the specified output stream. |
| Methods inherited from interface com.moyosoft.exchange.attachment.ExchangeAttachment |
|---|
delete, getAttachmentInfo, getContentId, getContentLocation, getContentType, getName, getParentItemId |
| Method Detail |
|---|
byte[] getContent()
throws ExchangeServiceException
ExchangeServiceException - if any errors occur during the communication with Exchange.
java.io.InputStream getContentAsStream()
throws ExchangeServiceException
This method never returns null even if the file has no content; an empty input stream will be returned in that case.
ExchangeServiceException - if any errors occur during the communication with Exchange.
void writeTo(java.io.OutputStream stream)
throws ExchangeServiceException,
java.io.IOException
writeTo in interface ExchangeAttachmentstream - the stream to write into.
ExchangeServiceException - if any errors occur during the communication with Exchange.
java.io.IOException - if errors occur when writing to the specified stream.
void writeTo(java.io.File file)
throws ExchangeServiceException,
java.io.IOException
writeTo in interface ExchangeAttachmentfile - the file to write into.
ExchangeServiceException - if any errors occur during the communication with Exchange.
java.io.IOException - if errors occur when writing to the specified file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||