API Reference
| Classic JavaDoc |
Interface ExchangeFileAttachment
com.moyosoft.exchange.attachment.ExchangeFileAttachment
Implemented Interfaces:
public interface ExchangeFileAttachment implements ExchangeAttachment
Represents a file attached to an Exchange item.
Methods
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. This method never returns null even if the file has no content; an empty input stream will be returned in that case. |
void | writeTo (java.io.OutputStream stream) | |
Writes the content of the attached file to the specified output stream. |
void | writeTo (java.io.File file) | |
Writes the content of the attachment to the specified file. If the specified file doesn't exist, it will be created. |
Community comments
Powered by JavaDocPlus