| Modifier and Type | Field and Description |
|---|---|
| private POP3Folder | |
| private int | |
| private int | |
| private SoftReference | |
| pack-priv String | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addHeader(String
header name name, String header value value)Overrides javax. Implements javax. |
| public void | addHeaderLine(String
the line to add line)Overrides javax. Implements javax. |
| public Enumeration | getAllHeaderLines()
Overrides javax. Implements javax. |
| public Enumeration | Returns: array of header objectsOverrides javax. Implements javax. |
| protected synchronized InputStream | getContentStream()
Produce the raw bytes of the content.
|
| public String[] | Returns: array of headersname of header name)Overrides javax. Implements javax. |
| public String | Returns: the value fields for all headers with this namethe name of this header name, String delimiter between returned headers delimiter)Overrides javax. Implements javax. |
| public Enumeration | getMatchingHeaderLines(String[]
the headers to return names)Overrides javax. Implements javax. |
| public Enumeration | getMatchingHeaders(String[]
the headers to match names)Overrides javax. Implements javax. |
| public InputStream | Returns: the MIME format streamImplements com. |
| public Enumeration | getNonMatchingHeaderLines(String[]
the headers to not return names)Overrides javax. Implements javax. |
| public Enumeration | getNonMatchingHeaders(String[]
the headers to not match names)Overrides javax. Implements javax. |
| private InputStream | |
| public int | Returns: size of content in bytesOverrides javax. Implements javax. |
| public synchronized void | invalidate(boolean
invalidate the headers as well? invalidateHeaders)Invalidate the cache of content for this message object, causing it to be fetched again from the server the next time it is needed. |
| private void | |
| public void | removeHeader(String
the name of this header name)Overrides javax. Implements javax. |
| public void | |
| public synchronized void | setFlags(Flags
the flags to be set newFlags, boolean the value to be set set)Overrides javax. |
| public void | setHeader(String
header name name, String header value value)Overrides javax. Implements javax. |
| public InputStream | Returns: InputStream containing the message headers and n content linesnumber of lines of content to fetch n)Fetch the header of the message and the first |
| public synchronized void | writeTo(OutputStream
the stream to write to os, String[] the headers to not include in the output ignoreList)Overrides javax. |
| folder | back to summary |
|---|---|
| private POP3Folder folder Hides javax. | |
| hdrSize | back to summary |
|---|---|
| private int hdrSize | |
| msgSize | back to summary |
|---|---|
| private int msgSize | |
| rawData | back to summary |
|---|---|
| private SoftReference<InputStream> rawData | |
| uid | back to summary |
|---|---|
| pack-priv String uid | |
| UNKNOWN | back to summary |
|---|---|
| pack-priv static final String UNKNOWN | |
| POP3Message | back to summary |
|---|---|
| public POP3Message(Folder folder, int msgno) throws MessagingException | |
| addHeader | back to summary |
|---|---|
| public void addHeader(String name, String value) throws MessagingException Overrides javax. Implements javax. Add this value to the existing values for this header_name. Throws IllegalWriteException because POP3 messages are read-only.
| |
| addHeaderLine | back to summary |
|---|---|
| public void addHeaderLine(String line) throws MessagingException Overrides javax. Implements javax. Add a raw RFC822 header-line. Throws IllegalWriteException because POP3 messages are read-only.
| |
| getAllHeaderLines | back to summary |
|---|---|
| public Enumeration Overrides javax. Implements javax. 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.
| |
| getAllHeaders | back to summary |
|---|---|
| public Enumeration Overrides javax. Implements javax. 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.
| |
| getContentStream | back to summary |
|---|---|
| protected synchronized InputStream getContentStream() throws MessagingException Overrides javax. Produce the raw bytes of the content. The data is fetched using the POP3 RETR command.
| |
| getHeader | back to summary |
|---|---|
| public String[] getHeader(String name) throws MessagingException Overrides javax. Implements javax. 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.
| |
| getHeader | back to summary |
|---|---|
| public String getHeader(String name, String delimiter) throws MessagingException Overrides javax. Implements javax. Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter. If the
delimiter is
| |
| getMatchingHeaderLines | back to summary |
|---|---|
| public Enumeration Overrides javax. Implements javax. 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.
| |
| getMatchingHeaders | back to summary |
|---|---|
| public Enumeration Overrides javax. Implements javax. Return matching headers from this Message as an Enumeration of Header objects.
| |
| getMimeStream | back to summary |
|---|---|
| public InputStream getMimeStream() throws MessagingException Implements com. Return the MIME format stream corresponding to this message part.
| |
| getNonMatchingHeaderLines | back to summary |
|---|---|
| public Enumeration Overrides javax. Implements javax. 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.
| |
| getNonMatchingHeaders | back to summary |
|---|---|
| public Enumeration Overrides javax. Implements javax. Return non-matching headers from this Message as an Enumeration of Header objects.
| |
| getRawStream | back to summary |
|---|---|
| private InputStream getRawStream(boolean skipHeader) throws MessagingException Produce the raw bytes of the message. The data is fetched using the POP3 RETR command. If skipHeader is true, just the content is returned. | |
| getSize | back to summary |
|---|---|
| public int getSize() throws MessagingException Overrides javax. Implements javax. 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.
| |
| invalidate | back to summary |
|---|---|
| public synchronized void invalidate(boolean invalidateHeaders) 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
| |
| loadHeaders | back to summary |
|---|---|
| private void loadHeaders() throws MessagingException Load the headers for this message into the InternetHeaders object. The headers are fetched using the POP3 TOP command. | |
| removeHeader | back to summary |
|---|---|
| public void removeHeader(String name) throws MessagingException Overrides javax. Implements javax. Remove all headers with this name. Throws IllegalWriteException because POP3 messages are read-only.
| |
| saveChanges | back to summary |
|---|---|
| public void saveChanges() throws MessagingException Overrides javax. POP3 message can't be changed. This method throws IllegalWriteException.
| |
| setFlags | back to summary |
|---|---|
| public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException Overrides javax. Set the specified flags on this message to the specified value.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(String name, String value) throws MessagingException Overrides javax. Implements javax. Set the value for this header_name. Throws IllegalWriteException because POP3 messages are read-only.
| |
| top | back to summary |
|---|---|
| public InputStream top(int n) throws MessagingException Fetch the header of the message and the first
| |
| writeTo | back to summary |
|---|---|
| public synchronized void writeTo(OutputStream os, String[] ignoreList) throws IOException, MessagingException Overrides javax. 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.
| |