Movatterモバイル変換


[0]ホーム

URL:


         


Class HeaderTokenizer.Token

java.lang.Object  |  +--javax.mail.internet.HeaderTokenizer.Token
Enclosing class:
HeaderTokenizer

public static classHeaderTokenizer.Token
extends java.lang.Object

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
 

ATOM

public static final intATOM
Token type indicating an ATOM.

QUOTEDSTRING

public static final intQUOTEDSTRING
Token type indicating a quoted string. The value field contains the string without the quotes.

COMMENT

public static final intCOMMENT
Token type indicating a comment. The value field contains the comment string without the comment start and end symbols.

EOF

public static final intEOF
Token type indicating end of input.

HeaderTokenizer.Token

publicHeaderTokenizer.Token(int type,                             java.lang.String value)
Constructor.
Parameters:
type - Token type
value - Token value

getType

public intgetType()
Return the type of the token. If the token represents a delimiter or a control character, the type is that character itself, converted to an integer. Otherwise, it's value is one of the following:

getValue

public java.lang.StringgetValue()
Returns the value of the token just read. When the current token is a quoted string, this field contains the body of the string, without the quotes. When the current token is a comment, this field contains the body of the comment.
Returns:
token value

         


[8]ページ先頭

©2009-2025 Movatter.jp