API Reference
  | Classic JavaDoc | 
ExchangeFileAttachment.writeTo
public void writeTo(java.io.OutputStream stream)
public void writeTo(java.io.File file)
Writes the content of the attached file to the specified output stream.Parameters:
Throws:
stream    | the stream to write into. | 
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:
Throws:
file    | the file to write into. | 
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