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

ExchangeAttachment.writeTo

public void writeTo(java.io.OutputStream stream)

Writes the content of the attachment to the specified output stream.

Parameters:
stream   the stream to write into.

Throws:
ExchangeServiceException   if any errors occur during the communication with Exchange.
IOException   if errors occur when writing to the specified stream.

public 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.

Parameters:
file   the file to write into.

Throws:
ExchangeServiceException   if any errors occur during the communication with Exchange.
IOException   if errors occur when writing to the specified file.

Community comments



Powered by JavaDocPlus