Moyosoft Products | Services | Download | Contact us    
Java Bridge to Exchange
Products  >  Java Bridge to Exchange  >  API Reference    
API Reference
Overview  |  
Classic JavaDoc

Interface ExchangeFileAttachment

Implemented Interfaces:

public interface ExchangeFileAttachment implements ExchangeAttachment

Represents a file attached to an Exchange item.


getContent ()
Returns the content of the attached file as a bytes array.
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.
writeTo ( stream)
Writes the content of the attached file to the specified output stream.
writeTo ( 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