javax.mail.internet

Interface MimePart

All Superinterfaces:
Part
Known Implementing Classes:
MimeBodyPart, MimeMessage

public interface MimePart
extends Part

Fields inherited from interface javax.mail.Part

ATTACHMENT, INLINE

Method Summary

abstract void
addHeaderLine(String line)
abstract Enumeration
getAllHeaderLines()
abstract String
getContentID()
abstract String[]
getContentLanguage()
abstract String
getContentMD5()
abstract String
getEncoding()
abstract String
getHeader(String header, String delimiter)
abstract Enumeration
getMatchingHeaderLines(String[] names)
abstract Enumeration
getNonMatchingHeaderLines(String[] names)
abstract void
setContentLanguage(String[] languages)
abstract void
setContentMD5(String content)
abstract void
setText(String text)
abstract void
setText(String text, String charset)

Methods inherited from interface javax.mail.Part

addHeader, getAllHeaders, getContent, getContentType, getDataHandler, getDescription, getDisposition, getFileName, getHeader, getInputStream, getLineCount, getMatchingHeaders, getNonMatchingHeaders, getSize, isMimeType, removeHeader, setContent, setContent, setDataHandler, setDescription, setDisposition, setFileName, setHeader, setText, writeTo

Method Details

addHeaderLine

public abstract void addHeaderLine(String line)
            throws MessagingException

getAllHeaderLines

public abstract Enumeration getAllHeaderLines()
            throws MessagingException

getContentID

public abstract String getContentID()
            throws MessagingException

getContentLanguage

public abstract String[] getContentLanguage()
            throws MessagingException

getContentMD5

public abstract String getContentMD5()
            throws MessagingException

getEncoding

public abstract String getEncoding()
            throws MessagingException

getHeader

public abstract String getHeader(String header,
                                 String delimiter)
            throws MessagingException

getMatchingHeaderLines

public abstract Enumeration getMatchingHeaderLines(String[] names)
            throws MessagingException

getNonMatchingHeaderLines

public abstract Enumeration getNonMatchingHeaderLines(String[] names)
            throws MessagingException

setContentLanguage

public abstract void setContentLanguage(String[] languages)
            throws MessagingException

setContentMD5

public abstract void setContentMD5(String content)
            throws MessagingException

setText

public abstract void setText(String text)
            throws MessagingException
Specified by:
setText in interface Part

setText

public abstract void setText(String text,
                             String charset)
            throws MessagingException