javax.mail
Interface Part

All Known Subinterfaces:
MimePart
All Known Implementing Classes:
BodyPart, Message, MimeBodyPart, MimeMessage

public interface Part

Note: Parts are used in Collections so implementing classes must provide a suitable implementation of equals and hashCode.

Version:
$Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Wed, 25 Oct 2006) $

Field Summary
static java.lang.String ATTACHMENT
           
static java.lang.String INLINE
           
 
Method Summary
 void addHeader(java.lang.String name, java.lang.String value)
           
 java.util.Enumeration getAllHeaders()
           
 java.lang.Object getContent()
           
 java.lang.String getContentType()
           
 javax.activation.DataHandler getDataHandler()
           
 java.lang.String getDescription()
           
 java.lang.String getDisposition()
           
 java.lang.String getFileName()
           
 java.lang.String[] getHeader(java.lang.String name)
           
 java.io.InputStream getInputStream()
           
 int getLineCount()
           
 java.util.Enumeration getMatchingHeaders(java.lang.String[] names)
           
 java.util.Enumeration getNonMatchingHeaders(java.lang.String[] names)
           
 int getSize()
           
 boolean isMimeType(java.lang.String mimeType)
           
 void removeHeader(java.lang.String name)
           
 void setContent(Multipart content)
           
 void setContent(java.lang.Object content, java.lang.String type)
           
 void setDataHandler(javax.activation.DataHandler handler)
           
 void setDescription(java.lang.String description)
           
 void setDisposition(java.lang.String disposition)
           
 void setFileName(java.lang.String name)
           
 void setHeader(java.lang.String name, java.lang.String value)
           
 void setText(java.lang.String content)
           
 void writeTo(java.io.OutputStream out)
           
 

Field Detail

ATTACHMENT

static final java.lang.String ATTACHMENT
See Also:
Constant Field Values

INLINE

static final java.lang.String INLINE
See Also:
Constant Field Values
Method Detail

addHeader

void addHeader(java.lang.String name,
               java.lang.String value)
               throws MessagingException
Throws:
MessagingException

getAllHeaders

java.util.Enumeration getAllHeaders()
                                    throws MessagingException
Throws:
MessagingException

getContent

java.lang.Object getContent()
                            throws java.io.IOException,
                                   MessagingException
Throws:
java.io.IOException
MessagingException

getContentType

java.lang.String getContentType()
                                throws MessagingException
Throws:
MessagingException

getDataHandler

javax.activation.DataHandler getDataHandler()
                                            throws MessagingException
Throws:
MessagingException

getDescription

java.lang.String getDescription()
                                throws MessagingException
Throws:
MessagingException

getDisposition

java.lang.String getDisposition()
                                throws MessagingException
Throws:
MessagingException

getFileName

java.lang.String getFileName()
                             throws MessagingException
Throws:
MessagingException

getHeader

java.lang.String[] getHeader(java.lang.String name)
                             throws MessagingException
Throws:
MessagingException

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException,
                                          MessagingException
Throws:
java.io.IOException
MessagingException

getLineCount

int getLineCount()
                 throws MessagingException
Throws:
MessagingException

getMatchingHeaders

java.util.Enumeration getMatchingHeaders(java.lang.String[] names)
                                         throws MessagingException
Throws:
MessagingException

getNonMatchingHeaders

java.util.Enumeration getNonMatchingHeaders(java.lang.String[] names)
                                            throws MessagingException
Throws:
MessagingException

getSize

int getSize()
            throws MessagingException
Throws:
MessagingException

isMimeType

boolean isMimeType(java.lang.String mimeType)
                   throws MessagingException
Throws:
MessagingException

removeHeader

void removeHeader(java.lang.String name)
                  throws MessagingException
Throws:
MessagingException

setContent

void setContent(Multipart content)
                throws MessagingException
Throws:
MessagingException

setContent

void setContent(java.lang.Object content,
                java.lang.String type)
                throws MessagingException
Throws:
MessagingException

setDataHandler

void setDataHandler(javax.activation.DataHandler handler)
                    throws MessagingException
Throws:
MessagingException

setDescription

void setDescription(java.lang.String description)
                    throws MessagingException
Throws:
MessagingException

setDisposition

void setDisposition(java.lang.String disposition)
                    throws MessagingException
Throws:
MessagingException

setFileName

void setFileName(java.lang.String name)
                 throws MessagingException
Throws:
MessagingException

setHeader

void setHeader(java.lang.String name,
               java.lang.String value)
               throws MessagingException
Throws:
MessagingException

setText

void setText(java.lang.String content)
             throws MessagingException
Throws:
MessagingException

writeTo

void writeTo(java.io.OutputStream out)
             throws java.io.IOException,
                    MessagingException
Throws:
java.io.IOException
MessagingException


Copyright © {inceptionYear}-2007 null. All Rights Reserved.