Java javax.mail.internet MimePart fields, constructors, methods, implement or subclass

Example usage for Java javax.mail.internet MimePart fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.mail.internet MimePart.

The text is from its open source code.

Method

voidaddHeader(String header_name, String header_value)
Add this value to the existing values for this header_name.
EnumerationgetAllHeaderLines()
Get all header lines as an Enumeration of Strings.
Enumeration
getAllHeaders()
Return all the headers from this part as an Enumeration of Header objects.
ObjectgetContent()
Return the content as a Java object.
StringgetContentID()
Get the Content-ID of this part.
String[]getContentLanguage()
Get the language tags specified in the Content-Language header of this MimePart.
StringgetContentMD5()
Get the Content-MD5 digest of this part.
StringgetContentType()
Returns the Content-Type of the content of this part.
DataHandlergetDataHandler()
Return a DataHandler for the content within this part.
StringgetDescription()
Return a description String for this part.
StringgetDisposition()
Return the disposition of this part.
StringgetEncoding()
Get the transfer encoding of this part.
StringgetFileName()
Get the filename associated with this part, if possible.
StringgetHeader(String name, String delimiter)
Get the values of all header fields available for this header, returned as a single String, with the values separated by the delimiter.
String[]getHeader(String header_name)
Get all the headers for this header name.
InputStreamgetInputStream()
Return an input stream for this part's "content".
intgetLineCount()
Return the number of lines in the content of this part.
EnumerationgetMatchingHeaderLines(String[] names)
Get matching header lines as an Enumeration of Strings.
intgetSize()
Return the size of the content of this part in bytes.
booleanisMimeType(String mimeType)
Is this Part of the specified MIME type?
voidremoveHeader(String header_name)
Remove all headers with this name.
voidsetContent(Object obj, String type)
A convenience method for setting this part's content.
voidsetDataHandler(DataHandler dh)
This method provides the mechanism to set this part's content.
voidsetFileName(String filename)
Set the filename associated with this part, if possible.
voidsetHeader(String header_name, String header_value)
Set the value for this header_name.
voidsetText(String text, String charset)
Convenience method that sets the given String as this part's content, with a MIME type of "text/plain" and the specified charset.
voidwriteTo(OutputStream os)
Output a bytestream for this Part.