Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.mail.Message
javax.mail.internet.MimeMessage
gnu.mail.providers.ReadOnlyMessage
gnu.mail.providers.pop3.POP3Message
public final class POP3Message
extends gnu.mail.providers.ReadOnlyMessage
Nested Class Summary |
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage | |
MimeMessage.RecipientType |
Nested classes/interfaces inherited from class javax.mail.Message | |
Message.RecipientType |
Field Summary |
Fields inherited from class javax.mail.internet.MimeMessage | |
content , contentStream , dh , flags , headers , modified , saved |
Fields inherited from interface javax.mail.Part | |
ATTACHMENT , INLINE |
Method Summary | |
Enumeration |
|
Enumeration |
|
protected InputStream |
|
DataHandler |
|
String[] |
|
String |
|
Enumeration |
|
Enumeration |
|
Enumeration |
|
Enumeration |
|
int |
|
String |
|
void | |
void |
|
void |
|
Methods inherited from class gnu.mail.providers.ReadOnlyMessage | |
addHeader , addHeaderLine , removeHeader , saveChanges , setContent , setContent , setFlags , setHeader |
Methods inherited from class javax.mail.Message | |
addFrom , addRecipient , addRecipients , getAllRecipients , getFlags , getFolder , getFrom , getMessageNumber , getReceivedDate , getRecipients , getReplyTo , getSentDate , getSubject , isExpunged , isSet , match , reply , saveChanges , setExpunged , setFlag , setFlags , setFrom , setFrom , setMessageNumber , setRecipient , setRecipients , setReplyTo , setSentDate , setSubject |
public Enumeration getAllHeaderLines() throws MessagingException
Causes the headers to be read.
- Specified by:
- getAllHeaderLines in interface MimePart
- Overrides:
- getAllHeaderLines in interface MimeMessage
public Enumeration getAllHeaders() throws MessagingException
Causes the headers to be read.
- Specified by:
- getAllHeaders in interface Part
- Overrides:
- getAllHeaders in interface MimeMessage
protected InputStream getContentStream() throws MessagingException
Causes the content to be read in.
- Overrides:
- getContentStream in interface MimeMessage
public DataHandler getDataHandler() throws MessagingException
Causes the content to be read in.
- Specified by:
- getDataHandler in interface Part
- Overrides:
- getDataHandler in interface MimeMessage
public String[] getHeader(String name) throws MessagingException
Causes the headers to be read.
- Overrides:
- getHeader in interface MimeMessage
public String getHeader(String name, String delimiter) throws MessagingException
Causes the headers to be read.
- Overrides:
- getHeader in interface MimeMessage
public Enumeration getMatchingHeaderLines(String[] names) throws MessagingException
Causes the headers to be read.
- Specified by:
- getMatchingHeaderLines in interface MimePart
- Overrides:
- getMatchingHeaderLines in interface MimeMessage
public Enumeration getMatchingHeaders(String[] names) throws MessagingException
Causes the headers to be read.
- Specified by:
- getMatchingHeaders in interface Part
- Overrides:
- getMatchingHeaders in interface MimeMessage
public Enumeration getNonMatchingHeaderLines(String[] names) throws MessagingException
Causes the headers to be read.
- Specified by:
- getNonMatchingHeaderLines in interface MimePart
- Overrides:
- getNonMatchingHeaderLines in interface MimeMessage
public Enumeration getNonMatchingHeaders(String[] names) throws MessagingException
Causes the headers to be read.
- Specified by:
- getNonMatchingHeaders in interface Part
- Overrides:
- getNonMatchingHeaders in interface MimeMessage
public int getSize() throws MessagingException
Gets the size of the message. Uses the cached size if it's available to us.
- Overrides:
- getSize in interface MimeMessage
public void setFlags(Flags flags, boolean set) throws MessagingException
Set flags (but only DELETED is supported) add or remove the message from the folder deleted message list.
- Overrides:
- setFlags in interface gnu.mail.providers.ReadOnlyMessage
public void writeTo(OutputStream msgStream) throws IOException, MessagingException
Writes this message to the specified stream in RFC 822 format.
- Overrides:
- writeTo in interface MimeMessage
public void writeTo(OutputStream msgStream, String[] ignoreList) throws IOException, MessagingException
Writes this message to the specified stream in RFC 822 format, without the specified headers.
- Overrides:
- writeTo in interface MimeMessage