This is a utility interface for handling attachments. It has the following ten methods:
Method
setContentType
Method description
Sets the content type of the attachment.
Syntax
public void setContentType(String contentType)
Parameters
Method
getContentType
Method description
Retrieves the content type of the attachment.
Syntax
public String getContentType()
Parameters
None
Method
setDescription
Method description
Sets a string describing the attachment
Syntax
public void setDescription(String desc)
Parameters
Method
getDescription
Method description
Retrieves the description
Syntax
public String getDescription()
Parameters
None
Method
setURI
Method description
Sets a URI for the attachment
Syntax
public void setURI(String URI)
Parameters
Method
getURI
Method description
Retrieves the URI
Syntax
public String getURI()
Parameters
None
Method
setEncoding
Method description
Sets the attachment's character encoding
Syntax
public void setEncoding(String encoding)
Parameters
Method
getEncoding
Method description
Retrieves the attachment's character encoding
Syntax
public String getEncoding()
Parameters
None
Method
setFile
Method description
Sets a file for the attachment
Syntax
public void setFile(File file)
Parameters
Method
getFile
Method description
Retrieves the file
Syntax
public File getFile()
Parameters
None