gnu.mail.providers.pop3

Class POP3Message

public final class POP3Message extends ReadOnlyMessage

The message class implementing the POP3 mail protocol.

Version: 1.2

Author: Chris Burdess Nic Ferrier

Method Summary
EnumerationgetAllHeaderLines()
Causes the headers to be read.
EnumerationgetAllHeaders()
Causes the headers to be read.
protected InputStreamgetContentStream()
Causes the content to be read in.
DataHandlergetDataHandler()
Causes the content to be read in.
String[]getHeader(String name)
Causes the headers to be read.
StringgetHeader(String name, String delimiter)
Causes the headers to be read.
EnumerationgetMatchingHeaderLines(String[] names)
Causes the headers to be read.
EnumerationgetMatchingHeaders(String[] names)
Causes the headers to be read.
EnumerationgetNonMatchingHeaderLines(String[] names)
Causes the headers to be read.
EnumerationgetNonMatchingHeaders(String[] names)
Causes the headers to be read.
intgetSize()
Gets the size of the message.
StringgetUID()
Returns the unique ID for this message.
voidsetFlags(Flags flags, boolean set)
Set flags (but only DELETED is supported) add or remove the message from the folder deleted message list.
voidwriteTo(OutputStream msgStream)
voidwriteTo(OutputStream msgStream, String[] ignoreList)

Method Detail

getAllHeaderLines

public Enumeration getAllHeaderLines()
Causes the headers to be read.

getAllHeaders

public Enumeration getAllHeaders()
Causes the headers to be read.

getContentStream

protected InputStream getContentStream()
Causes the content to be read in.

getDataHandler

public DataHandler getDataHandler()
Causes the content to be read in.

getHeader

public String[] getHeader(String name)
Causes the headers to be read.

getHeader

public String getHeader(String name, String delimiter)
Causes the headers to be read.

getMatchingHeaderLines

public Enumeration getMatchingHeaderLines(String[] names)
Causes the headers to be read.

getMatchingHeaders

public Enumeration getMatchingHeaders(String[] names)
Causes the headers to be read.

getNonMatchingHeaderLines

public Enumeration getNonMatchingHeaderLines(String[] names)
Causes the headers to be read.

getNonMatchingHeaders

public Enumeration getNonMatchingHeaders(String[] names)
Causes the headers to be read.

getSize

public int getSize()
Gets the size of the message. Uses the cached size if it's available to us.

getUID

public String getUID()
Returns the unique ID for this message.

setFlags

public void setFlags(Flags flags, boolean set)
Set flags (but only DELETED is supported) add or remove the message from the folder deleted message list.

writeTo

public void writeTo(OutputStream msgStream)

writeTo

public void writeTo(OutputStream msgStream, String[] ignoreList)
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved