Java javax.mail Part fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Field

StringATTACHMENT
This part should be presented as an attachment.
StringINLINE
This part should be presented inline.

Method

Enumeration
getAllHeaders()
Return all the headers from this part as an Enumeration of Header objects.
ClassgetClass()
Returns the runtime class of this Object .
ObjectgetContent()
Return the content as a Java object.
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.
StringgetFileName()
Get the filename associated with this part, if possible.
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.
intgetSize()
Return the size of the content of this part in bytes.
booleanisMimeType(String mimeType)
Is this Part of the specified MIME type?
voidsetContent(Object obj, String type)
A convenience method for setting this part's content.
voidsetContent(Multipart mp)
This method sets the given Multipart object as this message's content.
voidsetDataHandler(DataHandler dh)
This method provides the mechanism to set this part's content.
voidsetDisposition(String disposition)
Set the disposition of this part.
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.
StringtoString()
Returns a string representation of the object.
voidwriteTo(OutputStream os)
Output a bytestream for this Part.