|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.Message
javax.mail.internet.MimeMessage
gnu.mail.providers.ReadOnlyMessage
gnu.mail.providers.pop3.POP3Message
public final class POP3Message
The message class implementing the POP3 mail protocol.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage |
---|
MimeMessage.RecipientType |
Field Summary |
---|
Fields inherited from class javax.mail.internet.MimeMessage |
---|
content, contentStream, dh, flags, headers, modified, saved |
Fields inherited from class javax.mail.Message |
---|
expunged, folder, msgnum, session |
Fields inherited from interface javax.mail.Part |
---|
ATTACHMENT, INLINE |
Method Summary | |
---|---|
Enumeration |
getAllHeaderLines()
Causes the headers to be read. |
Enumeration |
getAllHeaders()
Causes the headers to be read. |
protected InputStream |
getContentStream()
Causes the content to be read in. |
DataHandler |
getDataHandler()
Causes the content to be read in. |
String[] |
getHeader(String name)
Causes the headers to be read. |
String |
getHeader(String name,
String delimiter)
Causes the headers to be read. |
Enumeration |
getMatchingHeaderLines(String[] names)
Causes the headers to be read. |
Enumeration |
getMatchingHeaders(String[] names)
Causes the headers to be read. |
Enumeration |
getNonMatchingHeaderLines(String[] names)
Causes the headers to be read. |
Enumeration |
getNonMatchingHeaders(String[] names)
Causes the headers to be read. |
int |
getSize()
Gets the size of the message. |
String |
getUID()
Returns the unique ID for this message. |
void |
setFlags(Flags flags,
boolean set)
Set flags (but only DELETED is supported) add or remove the message from the folder deleted message list. |
void |
writeTo(OutputStream msgStream)
Writes this message to the specified stream in RFC 822 format. |
void |
writeTo(OutputStream msgStream,
String[] ignoreList)
Writes this message to the specified stream in RFC 822 format, without the specified headers. |
Methods inherited from class gnu.mail.providers.ReadOnlyMessage |
---|
addHeader, addHeaderLine, removeHeader, saveChanges, setContent, setContent, setHeader |
Methods inherited from class javax.mail.Message |
---|
addRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public DataHandler getDataHandler() throws MessagingException
getDataHandler
in interface Part
getDataHandler
in class MimeMessage
MessagingException
protected InputStream getContentStream() throws MessagingException
getContentStream
in class MimeMessage
MessagingException
MimeBodyPart.getContentStream()
public int getSize() throws MessagingException
getSize
in interface Part
getSize
in class MimeMessage
MessagingException
public String[] getHeader(String name) throws MessagingException
getHeader
in interface Part
getHeader
in class MimeMessage
name
- the header name
MessagingException
public String getHeader(String name, String delimiter) throws MessagingException
getHeader
in interface MimePart
getHeader
in class MimeMessage
name
- the header namedelimiter
- the delimiter
MessagingException
public Enumeration getAllHeaders() throws MessagingException
getAllHeaders
in interface Part
getAllHeaders
in class MimeMessage
MessagingException
public Enumeration getAllHeaderLines() throws MessagingException
getAllHeaderLines
in interface MimePart
getAllHeaderLines
in class MimeMessage
MessagingException
public Enumeration getMatchingHeaders(String[] names) throws MessagingException
getMatchingHeaders
in interface Part
getMatchingHeaders
in class MimeMessage
names
- the header names to match
MessagingException
public Enumeration getMatchingHeaderLines(String[] names) throws MessagingException
getMatchingHeaderLines
in interface MimePart
getMatchingHeaderLines
in class MimeMessage
MessagingException
public Enumeration getNonMatchingHeaders(String[] names) throws MessagingException
getNonMatchingHeaders
in interface Part
getNonMatchingHeaders
in class MimeMessage
names
- the header names to ignore
MessagingException
public Enumeration getNonMatchingHeaderLines(String[] names) throws MessagingException
getNonMatchingHeaderLines
in interface MimePart
getNonMatchingHeaderLines
in class MimeMessage
MessagingException
public void writeTo(OutputStream msgStream) throws IOException, MessagingException
MimeMessage
writeTo
in interface Part
writeTo
in class MimeMessage
IOException
- if an error occurs writing to the stream or in
the data handler layer
MessagingException
- if an error occurs fetching the data
to be writtenpublic void writeTo(OutputStream msgStream, String[] ignoreList) throws IOException, MessagingException
MimeMessage
writeTo
in class MimeMessage
IOException
- if an error occurs writing to the stream or in
the data handler layer
MessagingException
public String getUID() throws MessagingException
MessagingException
public void setFlags(Flags flags, boolean set) throws MessagingException
setFlags
in class gnu.mail.providers.ReadOnlyMessage
flags
- the flags to be setset
- the value to be set
IllegalWriteException
- if the underlying implementation
does not support modification of existing values
MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |