|
abstract
void
|
addHeader(String header_name, String header_value)
Add this value to the existing values for this header_name.
|
|
abstract
Enumeration
|
getAllHeaders()
Return all the headers from this part as an Enumeration of
Header objects.
|
|
abstract
Object
|
getContent()
Return the content as a Java object.
|
|
abstract
String
|
getContentType()
Returns the Content-Type of the content of this part.
|
|
abstract
DataHandler
|
getDataHandler()
Return a DataHandler for the content within this part.
|
|
abstract
String
|
getDescription()
Return a description String for this part.
|
|
abstract
String
|
getDisposition()
Return the disposition of this part.
|
|
abstract
String
|
getFileName()
Get the filename associated with this part, if possible.
|
|
abstract
String[]
|
getHeader(String header_name)
Get all the headers for this header name.
|
|
abstract
InputStream
|
getInputStream()
Return an input stream for this part's "content".
|
|
abstract
int
|
getLineCount()
Return the number of lines in the content of this part.
|
|
abstract
Enumeration
|
getMatchingHeaders(String[] header_names)
Return matching headers from this part as an Enumeration of
Header objects.
|
|
abstract
Enumeration
|
getNonMatchingHeaders(String[] header_names)
Return non-matching headers from this envelope as an Enumeration
of Header objects.
|
|
abstract
int
|
getSize()
Return the size of the content of this part in bytes.
|
|
abstract
boolean
|
isMimeType(String mimeType)
Is this Part of the specified MIME type? This method
compares only the primaryType and
subType.
|
|
abstract
void
|
removeHeader(String header_name)
Remove all headers with this name.
|
|
abstract
void
|
setContent(Object obj, String type)
A convenience method for setting this part's content.
|
|
abstract
void
|
setContent(Multipart mp)
This method sets the given Multipart object as this message's
content.
|
|
abstract
void
|
setDataHandler(DataHandler dh)
This method provides the mechanism to set this part's content.
|
|
abstract
void
|
setDescription(String description)
Set a description String for this part.
|
|
abstract
void
|
setDisposition(String disposition)
Set the disposition of this part.
|
|
abstract
void
|
setFileName(String filename)
Set the filename associated with this part, if possible.
|
|
abstract
void
|
setHeader(String header_name, String header_value)
Set the value for this header_name.
|
|
abstract
void
|
setText(String text)
A convenience method that sets the given String as this
part's content with a MIME type of "text/plain".
|
|
abstract
void
|
writeTo(OutputStream os)
Output a bytestream for this Part.
|