Package org.apache.commons.net.pop3
Class POP3MessageInfo
- java.lang.Object
-
- org.apache.commons.net.pop3.POP3MessageInfo
-
public final class POP3MessageInfo extends java.lang.Object
POP3MessageInfo is used to return information about messages stored on a POP3 server. Its fields are used to mean slightly different things depending on the information being returned.In response to a status command,
numbercontains the number of messages in the mailbox,sizecontains the size of the mailbox in bytes, andidentifieris null.In response to a message listings,
numbercontains the message number,sizecontains the size of the message in bytes, andidentifieris null.In response to unique identifier listings,
numbercontains the message number,sizeis undefined, andidentifiercontains the message's unique identifier.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringidentifierintnumberintsize
-
Constructor Summary
Constructors Constructor Description POP3MessageInfo()Creates a POP3MessageInfo instance withnumberandsizeset to 0, andidentifierset to null.POP3MessageInfo(int num, int octets)Creates a POP3MessageInfo instance withnumberset tonum,sizeset tooctets, andidentifierset to null.POP3MessageInfo(int num, java.lang.String uid)Creates a POP3MessageInfo instance withnumberset tonum,sizeundefined, andidentifierset touid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
number
public int number
-
size
public int size
-
identifier
public java.lang.String identifier
-
-
Constructor Detail
-
POP3MessageInfo
public POP3MessageInfo()
Creates a POP3MessageInfo instance withnumberandsizeset to 0, andidentifierset to null.
-
POP3MessageInfo
public POP3MessageInfo(int num, int octets)
Creates a POP3MessageInfo instance withnumberset tonum,sizeset tooctets, andidentifierset to null.- Parameters:
num- the numberoctets- the size
-
POP3MessageInfo
public POP3MessageInfo(int num, java.lang.String uid)
Creates a POP3MessageInfo instance withnumberset tonum,sizeundefined, andidentifierset touid.- Parameters:
num- the numberuid- the UID
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Since:
- 3.6
-
-