| Prev Class | Next Class | Frames | No Frames | 
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr | 
java.lang.Objectjavax.mail.Messagejavax.mail.internet.MimeMessagegnu.mail.providers.ReadOnlyMessagegnu.mail.providers.pop3.POP3Messagepublic final class POP3Messageextends 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 MessagingExceptionCauses the headers to be read.
- Specified by:
- getAllHeaderLines in interface MimePart
- Overrides:
- getAllHeaderLines in interface MimeMessage
public Enumeration getAllHeaders()
            throws MessagingExceptionCauses the headers to be read.
- Specified by:
- getAllHeaders in interface Part
- Overrides:
- getAllHeaders in interface MimeMessage
protected InputStream getContentStream()
            throws MessagingExceptionCauses the content to be read in.
- Overrides:
- getContentStream in interface MimeMessage
public DataHandler getDataHandler()
            throws MessagingExceptionCauses the content to be read in.
- Specified by:
- getDataHandler in interface Part
- Overrides:
- getDataHandler in interface MimeMessage
public String[] getHeader(String name)
            throws MessagingExceptionCauses the headers to be read.
- Overrides:
- getHeader in interface MimeMessage
public String getHeader(String name,
                        String delimiter)
            throws MessagingExceptionCauses the headers to be read.
- Overrides:
- getHeader in interface MimeMessage
public Enumeration getMatchingHeaderLines(String[] names)
            throws MessagingExceptionCauses the headers to be read.
- Specified by:
- getMatchingHeaderLines in interface MimePart
- Overrides:
- getMatchingHeaderLines in interface MimeMessage
public Enumeration getMatchingHeaders(String[] names)
            throws MessagingExceptionCauses the headers to be read.
- Specified by:
- getMatchingHeaders in interface Part
- Overrides:
- getMatchingHeaders in interface MimeMessage
public Enumeration getNonMatchingHeaderLines(String[] names)
            throws MessagingExceptionCauses the headers to be read.
- Specified by:
- getNonMatchingHeaderLines in interface MimePart
- Overrides:
- getNonMatchingHeaderLines in interface MimeMessage
public Enumeration getNonMatchingHeaders(String[] names)
            throws MessagingExceptionCauses the headers to be read.
- Specified by:
- getNonMatchingHeaders in interface Part
- Overrides:
- getNonMatchingHeaders in interface MimeMessage
public int getSize()
            throws MessagingExceptionGets 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,
                   MessagingExceptionOutput the message as an RFC 822 format stream. Note that, depending on how the message was constructed, it may use a variety of line termination conventions. Generally the output should be sent through an appropriate FilterOutputStream that converts the line terminators to the desired form, either CRLF for MIME compatibility and for use in Internet protocols, or the local platform's line terminator for storage in a local text file. This implementation calls thewriteTo(OutputStream, String[])method with a null ignore list.
- Overrides:
- writeTo in interface MimeMessage
public void writeTo(OutputStream msgStream,
                    String[] ignoreList)
            throws IOException,
                   MessagingExceptionOutput the message as an RFC 822 format stream, without specified headers. If the saved flag is not set, thesaveChangesmethod is called. If themodifiedflag is not set and thecontentarray is not null, thecontentarray is written directly, after writing the appropriate message headers.
- Overrides:
- writeTo in interface MimeMessage