public static class HeaderTokenizer.Token extends Object
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
HeaderTokenizer.Token(int type,
String value)
Constructor.
|
public static final int ATOM
public static final int QUOTEDSTRING
public static final int COMMENT
public static final int EOF
public HeaderTokenizer.Token(int type, String value)
type
- Token typevalue
- Token valuepublic int getType()
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
End of header
public String getValue()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.