public final class POP3Message
extends gnu.mail.providers.ReadOnlyMessage
MimeMessage.RecipientTypecontent, contentStream, dh, flags, headers, modified, savedATTACHMENT, INLINE| Modifier and Type | Method and Description |
|---|---|
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.
|
addHeader, addHeaderLine, removeHeader, saveChanges, setContent, setContent, setHeaderaddFrom, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentType, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getInputStream, getLineCount, getMessageID, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSubject, isMimeType, isSet, parse, reply, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFrom, setFrom, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageIdaddRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipientpublic DataHandler getDataHandler() throws MessagingException
getDataHandler in interface PartgetDataHandler in class MimeMessageMessagingExceptionprotected InputStream getContentStream() throws MessagingException
getContentStream in class MimeMessageMessagingExceptionMimeBodyPart.getContentStream()public int getSize()
throws MessagingException
getSize in interface PartgetSize in class MimeMessageMessagingExceptionpublic String[] getHeader(String name) throws MessagingException
getHeader in interface PartgetHeader in class MimeMessagename - the header nameMessagingExceptionpublic String getHeader(String name, String delimiter) throws MessagingException
getHeader in interface MimePartgetHeader in class MimeMessagename - the header namedelimiter - the delimiterMessagingExceptionpublic Enumeration getAllHeaders() throws MessagingException
getAllHeaders in interface PartgetAllHeaders in class MimeMessageMessagingExceptionpublic Enumeration getAllHeaderLines() throws MessagingException
getAllHeaderLines in interface MimePartgetAllHeaderLines in class MimeMessageMessagingExceptionpublic Enumeration getMatchingHeaders(String[] names) throws MessagingException
getMatchingHeaders in interface PartgetMatchingHeaders in class MimeMessagenames - the header names to matchMessagingExceptionpublic Enumeration getMatchingHeaderLines(String[] names) throws MessagingException
getMatchingHeaderLines in interface MimePartgetMatchingHeaderLines in class MimeMessageMessagingExceptionpublic Enumeration getNonMatchingHeaders(String[] names) throws MessagingException
getNonMatchingHeaders in interface PartgetNonMatchingHeaders in class MimeMessagenames - the header names to ignoreMessagingExceptionpublic Enumeration getNonMatchingHeaderLines(String[] names) throws MessagingException
getNonMatchingHeaderLines in interface MimePartgetNonMatchingHeaderLines in class MimeMessageMessagingExceptionpublic void writeTo(OutputStream msgStream) throws IOException, MessagingException
MimeMessagewriteTo in interface PartwriteTo in class MimeMessageIOException - if an error occurs writing to the stream or in
the data handler layerMessagingException - if an error occurs fetching the data
to be writtenpublic void writeTo(OutputStream msgStream, String[] ignoreList) throws IOException, MessagingException
MimeMessagewriteTo in class MimeMessageIOException - if an error occurs writing to the stream or in
the data handler layerMessagingExceptionpublic String getUID() throws MessagingException
MessagingExceptionpublic void setFlags(Flags flags, boolean set) throws MessagingException
setFlags in class gnu.mail.providers.ReadOnlyMessageflags - the flags to be setset - the value to be setIllegalWriteException - if the underlying implementation
does not support modification of existing valuesMessagingException© Copyright 2003, 2004 The Free Software Foundation, All rights reserved