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

ExchangeItemAttachment.writeTo

public void writeTo(java.io.OutputStream stream)

Writes the content of the attached item to the specified output stream in RFC-822 format (EML format) if the attached item is a message.

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 attached item to the specified file in RFC-822 format (EML format) if the attached item is a message. 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