Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.mail.internet.HeaderTokenizer.Token
public static class HeaderTokenizer.Token
extends java.lang.Object
Field Summary | |
static int |
|
static int |
|
static int |
|
static int |
|
Constructor Summary | |
|
Method Summary | |
int |
|
String |
|
public static final int ATOM
An ATOM.
- Field Value:
- -1
public static final int COMMENT
A comment. The value of this token is the comment string without the comment start and end symbols.
- Field Value:
- -3
public static final int EOF
The end of the input.
- Field Value:
- -4
public static final int QUOTEDSTRING
A quoted-string. The value of this token is the string without the quotes.
- Field Value:
- -2
public Token(int type, String value)
Constructor.
- Parameters:
type
- the token typevalue
- the token value
public int getType()
Returns the token type. If the token is a delimiter or a control character, the type is the integer value of that character. Otherwise, its value is one of the following:
- ATOM: a sequence of ASCII characters delimited by either SPACE, CTL, '(', '"' or the specified SPECIALS
- QUOTEDSTRING: a sequence of ASCII characters within quotes
- COMMENT: a sequence of ASCII characters within '(' and ')'
- EOF: the end of the header
public String getValue()
Returns the value of the token.