| java.lang.Object | |||
| ↳ | com.google.code.javax.mail.Message | ||
| ↳ | com.google.code.javax.mail.internet.MimeMessage | ||
| ↳ | com.google.code.com.sun.mail.pop3.POP3Message | ||
A POP3 Message. Just like a MimeMessage except that some things are not supported.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | UNKNOWN | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.code.javax.mail.Part
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| contentData | |||||||||||
| folder | |||||||||||
| hdrSize | |||||||||||
| msgSize | |||||||||||
| uid | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.code.javax.mail.internet.MimeMessage
| |||||||||||
From class
com.google.code.javax.mail.Message
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add this value to the existing values for this header_name.
| |||||||||||
Add a raw RFC822 header-line.
| |||||||||||
Get all header lines as an Enumeration of Strings.
| |||||||||||
Return all the headers from this Message as an enumeration
of Header objects.
| |||||||||||
Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter.
| |||||||||||
Get all the headers for this header_name.
| |||||||||||
Get matching header lines as an Enumeration of Strings.
| |||||||||||
Return matching headers from this Message as an Enumeration of
Header objects.
| |||||||||||
Get non-matching header lines as an Enumeration of Strings.
| |||||||||||
Return non-matching headers from this Message as an
Enumeration of Header objects.
| |||||||||||
Return the size of the content of this message in bytes.
| |||||||||||
Invalidate the cache of content for this message object, causing
it to be fetched again from the server the next time it is needed.
| |||||||||||
Remove all headers with this name.
| |||||||||||
POP3 message can't be changed.
| |||||||||||
Set the specified flags on this message to the specified value.
| |||||||||||
Set the value for this header_name.
| |||||||||||
Fetch the header of the message and the first
n lines
of the raw content of the message. | |||||||||||
Output the message as an RFC 822 format stream, without
specified headers.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Produce the raw bytes of the content.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.code.javax.mail.internet.MimeMessage
| |||||||||||
From class
com.google.code.javax.mail.Message
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.code.javax.mail.HasRawInputStream
| |||||||||||
From interface
com.google.code.javax.mail.Part
| |||||||||||
From interface
com.google.code.javax.mail.internet.MimePart
| |||||||||||
Add this value to the existing values for this header_name. Throws IllegalWriteException because POP3 messages are read-only.
| name | Header name |
|---|---|
| value | Header value |
| IllegalWriteException | because the underlying implementation does not support modification |
|---|---|
| IllegalStateException | if this message is obtained from a READ_ONLY folder. |
| MessagingException |
Add a raw RFC822 header-line. Throws IllegalWriteException because POP3 messages are read-only.
| line |
|---|
| IllegalWriteException | because the underlying implementation does not support modification |
|---|---|
| IllegalStateException | if this message is obtained from a READ_ONLY folder. |
| MessagingException |
Get all header lines as an Enumeration of Strings. A Header line is a raw RFC822 header-line, containing both the "name" and "value" field.
| MessagingException |
|---|
Return all the headers from this Message as an enumeration of Header objects.
Note that certain headers may be encoded as per RFC 2047 if they contain non US-ASCII characters and these should be decoded.
| MessagingException |
|---|
Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter. If the
delimiter is null, only the first header is
returned.
| name | The name of this header |
|---|---|
| delimiter | Delimiter between returned headers |
| MessagingException |
|---|
Get all the headers for this header_name. Note that certain headers may be encoded as per RFC 2047 if they contain non US-ASCII characters and these should be decoded.
| name | Name of header |
|---|
| MessagingException |
|---|
Get matching header lines as an Enumeration of Strings. A Header line is a raw RFC822 header-line, containing both the "name" and "value" field.
| names |
|---|
| MessagingException |
|---|
Return matching headers from this Message as an Enumeration of Header objects.
| names |
|---|
| MessagingException |
|---|
Get non-matching header lines as an Enumeration of Strings. A Header line is a raw RFC822 header-line, containing both the "name" and "value" field.
| names |
|---|
| MessagingException |
|---|
Return non-matching headers from this Message as an Enumeration of Header objects.
| names |
|---|
| MessagingException |
|---|
Return the size of the content of this message in bytes. Returns -1 if the size cannot be determined.
Note that this number may not be an exact measure of the content size and may or may not account for any transfer encoding of the content.
| MessagingException |
|---|
Invalidate the cache of content for this message object, causing
it to be fetched again from the server the next time it is needed.
If invalidateHeaders is true, invalidate the headers
as well.
| invalidateHeaders | Invalidate the headers as well? |
|---|
Remove all headers with this name. Throws IllegalWriteException because POP3 messages are read-only.
| name | The name of this header |
|---|
| IllegalWriteException | because the underlying implementation does not support modification |
|---|---|
| IllegalStateException | if this message is obtained from a READ_ONLY folder. |
| MessagingException |
POP3 message can't be changed. This method throws IllegalWriteException.
| IllegalWriteException | because the underlying implementation does not support modification |
|---|---|
| MessagingException |
Set the specified flags on this message to the specified value.
| newFlags | The flags to be set |
|---|---|
| set | The value to be set |
| MessagingException |
|---|
Set the value for this header_name. Throws IllegalWriteException because POP3 messages are read-only.
| name | Header name |
|---|---|
| value | Header value |
| IllegalWriteException | because the underlying implementation does not support modification |
|---|---|
| IllegalStateException | if this message is obtained from a READ_ONLY folder. |
| MessagingException |
Fetch the header of the message and the first n lines
of the raw content of the message. The headers and data are
available in the returned InputStream.
| n | Number of lines of content to fetch |
|---|
| MessagingException |
|---|
Output the message as an RFC 822 format stream, without specified headers. If the property "mail.pop3.cachewriteto" is set to "true", and ignoreList is null, and the message hasn't already been cached as a side effect of other operations, the message content is cached before being written. Otherwise, the message is streamed directly to the output stream without being cached.
| os | |
|---|---|
| ignoreList |
| IOException | if an error occurs writing to the stream or if an error is generated by the javax.activation layer. |
|---|---|
| MessagingException |
Produce the raw bytes of the content. The data is fetched using the POP3 RETR command.
| MessagingException |
|---|