| java.lang.Object | |
| ↳ | com.google.code.javax.mail.internet.HeaderTokenizer |
This class tokenizes RFC822 and MIME headers into the basic symbols specified by RFC822 and MIME.
This class handles folded headers (ie headers with embedded CRLF SPACE sequences). The folds are removed in the returned tokens.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| HeaderTokenizer.Token | The Token class represents tokens returned by the HeaderTokenizer. | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | MIME | MIME specials | |||||||||
| String | RFC822 | RFC822 specials | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| EOFToken | |||||||||||
| currentPos | |||||||||||
| delimiters | |||||||||||
| maxPos | |||||||||||
| nextPos | |||||||||||
| peekPos | |||||||||||
| skipComments | |||||||||||
| string | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor that takes a rfc822 style header.
| |||||||||||
Constructor.
| |||||||||||
Constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the rest of the Header.
| |||||||||||
Parses the next token from this String.
| |||||||||||
Peek at the next token, without actually removing the token
from the parse stream.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
MIME specials
RFC822 specials
Constructor that takes a rfc822 style header.
| header | The rfc822 header to be tokenized |
|---|---|
| delimiters | Set of delimiter characters
to be used to delimit ATOMS. These
are usually RFC822 or
MIME |
| skipComments | If true, comments are skipped and not returned as tokens |
Constructor. Comments are ignored and not returned as tokens
| header | The header that is tokenized |
|---|---|
| delimiters | The delimiters to be used |
Constructor. The RFC822 defined delimiters - RFC822 - are used to delimit ATOMS. Also comments are skipped and not returned as tokens
| header |
|---|
Return the rest of the Header.
Parses the next token from this String.
Clients sit in a loop calling next() to parse successive tokens until an EOF Token is returned.
| ParseException | if the parse fails |
|---|
Peek at the next token, without actually removing the token
from the parse stream. Invoking this method multiple times
will return successive tokens, until next() is
called.
| ParseException | if the parse fails |
|---|