|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.mail.internet Class HeaderTokenizer.Token
java.lang.Object javax.mail.internet.HeaderTokenizer.Token
- 封闭类:
- HeaderTokenizer
public static class HeaderTokenizer.Token
- extends Object
The Token class represents tokens returned by the HeaderTokenizer.
字段摘要 | |
---|---|
static int |
ATOM
Token type indicating an ATOM. |
static int |
COMMENT
Token type indicating a comment. |
static int |
EOF
Token type indicating end of input. |
static int |
QUOTEDSTRING
Token type indicating a quoted string. |
构造器摘要 | |
---|---|
HeaderTokenizer.Token(int type,
String value)
Constructor. |
方法摘要 | |
---|---|
int |
getType()
Return the type of the token. |
String |
getValue()
Returns the value of the token just read. |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
ATOM
public static final int ATOM
- Token type indicating an ATOM.
- 另请参见:
- 常量字段
QUOTEDSTRING
public static final int QUOTEDSTRING
- Token type indicating a quoted string. The value
field contains the string without the quotes.
- 另请参见:
- 常量字段
COMMENT
public static final int COMMENT
- Token type indicating a comment. The value field
contains the comment string without the comment
start and end symbols.
- 另请参见:
- 常量字段
EOF
public static final int EOF
- Token type indicating end of input.
- 另请参见:
- 常量字段
构造器详细信息 |
---|
HeaderTokenizer.Token
public HeaderTokenizer.Token(int type, String value)
- Constructor.
- 参数:
type
- Token typevalue
- Token value
方法详细信息 |
---|
getType
public int getType()
- 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:
ATOM
A sequence of ASCII characters delimited by either SPACE, CTL, "(", <"> or the specified SPECIALSQUOTEDSTRING
A sequence of ASCII characters within quotesCOMMENT
A sequence of ASCII characters within "(" and ")".EOF
End of header
getValue
public String getValue()
- 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.
- 返回:
- token value
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.