Note: Parts are used in Collections so implementing classes must provide
a suitable implementation of equals and hashCode.
addHeader
public abstract void addHeader(String name,
String value)
throws MessagingException
getInputStream
public abstract InputStream getInputStream()
throws IOException,
MessagingException
getMatchingHeaders
public abstract Enumeration getMatchingHeaders(String[] names)
throws MessagingException
getNonMatchingHeaders
public abstract Enumeration getNonMatchingHeaders(String[] names)
throws MessagingException
setContent
public abstract void setContent(Object content,
String type)
throws MessagingException
setDataHandler
public abstract void setDataHandler(DataHandler handler)
throws MessagingException
setDescription
public abstract void setDescription(String description)
throws MessagingException
setDisposition
public abstract void setDisposition(String disposition)
throws MessagingException
setHeader
public abstract void setHeader(String name,
String value)
throws MessagingException
writeTo
public abstract void writeTo(OutputStream out)
throws IOException,
MessagingException