Attachment Class

Used to represent an attachment associated with a FolderItem. Includes methods to upload and download attachments.

Constructors

public Attachment( javaxt.io.File file, javaxt.exchange.FolderItem parent )
public Attachment( String id, javaxt.exchange.Connection conn )
protected Attachment( org.w3c.dom.Node node )

Methods

download( javaxt.exchange.Connection conn ) returns java.io.InputStream
Used to download the attachment. Returns an input stream with the attachment.
equals( Object obj ) returns boolean
getContentID( ) returns String
Returns the content id (cid) associated with this attachment. This is useful for resolving inline attachments (e.g. images) found in email messages, calendar invites, and other folder items.
getContentType( ) returns String
Returns the mime type associated with the attachment (e.g. "image/jpeg").
getID( ) returns String
Returns the unique ID of the attachment.
getName( ) returns String
Returns the name of the attachment (e.g. "Resume.doc").
hashCode( ) returns int
Returns the hashCode associated with the attachment ID. If the attachment has not been saved/uploaded, then a temporary hashCode is assigned.
toString( ) returns String
Returns the name of the attachment (e.g. "Resume.doc").