AttachmentInterface

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

contentType
The content type

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

desc
The description of the attachment

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

URI
The Uniform Resource Identifier (URI)

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

encoding
The encoding of the attachment

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

file
The name of the file that will contain the attachment

Method

getFile

Method description

Retrieves the file

Syntax

public File getFile()

Parameters

None

Copyright IBM Corp. 2003, 2005