java.lang.Object | +--javax.mail.internet.HeaderTokenizer.Token
The Token class represents tokens returned by the HeaderTokenizer.
ATOM Token type indicating an ATOM. | |
COMMENT Token type indicating a comment. | |
EOF Token type indicating end of input. | |
QUOTEDSTRING Token type indicating a quoted string. |
HeaderTokenizer.Token(int type, java.lang.String value) Constructor. |
getType() Return the type of the token. | |
getValue() Returns the value of the token just read. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
public static final intATOM
public static final intQUOTEDSTRING
public static final intCOMMENT
public static final intEOF
publicHeaderTokenizer.Token(int type, java.lang.String value)
type
- Token typevalue
- Token valuepublic intgetType()
ATOM
A sequence of ASCII characters delimited by either SPACE, CTL, "(",<"> or the specified SPECIALSQUOTEDSTRING
A sequence of ASCII characterswithin quotesCOMMENT
A sequence of ASCII characters within "(" and ")".EOF
End of headerpublic java.lang.StringgetValue()