|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||||
| JavaTM Platform, Enterprise Edition, v 5.0
javax.mail.internet
|
||||||||||||||||||||||||||||
| Nested Class Summary | |
|---|---|
static class |
HeaderTokenizer.Token
The Token class represents tokens returned by the HeaderTokenizer. |
| Field Summary | |
|---|---|
static String |
MIME
MIME specials |
static String |
RFC822
RFC822 specials |
| Constructor Summary | |
|---|---|
HeaderTokenizer(String header)
Constructor. |
|
HeaderTokenizer(String header,
String delimiters)
Constructor. |
|
HeaderTokenizer(String header,
String delimiters,
boolean skipComments)
Constructor that takes a rfc822 style header. |
|
| Method Summary | |
|---|---|
String |
getRemainder()
Return the rest of the Header. |
HeaderTokenizer.Token |
next()
Parses the next token from this String. |
HeaderTokenizer.Token |
peek()
Peek at the next token, without actually removing the token from the parse stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RFC822
public static final String MIME
| Constructor Detail |
|---|
public HeaderTokenizer(String header, String delimiters, boolean skipComments)
header - The rfc822 header to be tokenizeddelimiters - Set of delimiter characters
to be used to delimit ATOMS. These
are usually RFC822 or
MIMEskipComments - If true, comments are skipped and
not returned as tokenspublic HeaderTokenizer(String header, String delimiters)
header - The header that is tokenizeddelimiters - The delimiters to be usedpublic HeaderTokenizer(String header)
| Method Detail |
|---|
public HeaderTokenizer.Token next() throws ParseException
Clients sit in a loop calling next() to parse successive tokens until an EOF Token is returned.
ParseException - if the parse failspublic HeaderTokenizer.Token peek() throws ParseException
next() is
called.
ParseException - if the parse failspublic String getRemainder()