| java.lang.Object com.sun.xml.ws.encoding.HeaderTokenizer
HeaderTokenizer | class HeaderTokenizer (Code) | | 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.
version: 1.9, 02/03/27 author: John Mani |
Inner Class :static class Token | |
Constructor Summary | |
| HeaderTokenizer(String header, String delimiters, boolean skipComments) Constructor that takes a rfc822 style header.
Parameters: header - The rfc822 header to be tokenized Parameters: delimiters - Set of delimiter charactersto be used to delimit ATOMS. | | HeaderTokenizer(String header, String delimiters) Constructor. | | HeaderTokenizer(String header) Constructor. |
Method Summary | |
String | getRemainder() Return the rest of the Header.
String rest of header. | Token | next() Parses the next token from this String. | Token | peek() Peek at the next token, without actually removing the token
from the parse stream. |
HeaderTokenizer | HeaderTokenizer(String header, String delimiters, boolean skipComments)(Code) | | Constructor that takes a rfc822 style header.
Parameters: header - The rfc822 header to be tokenized Parameters: delimiters - Set of delimiter charactersto be used to delimit ATOMS. Theseare usually RFC822 orMIME Parameters: skipComments - If true, comments are skipped andnot returned as tokens |
HeaderTokenizer | HeaderTokenizer(String header, String delimiters)(Code) | | Constructor. Comments are ignored and not returned as tokens
Parameters: header - The header that is tokenized Parameters: delimiters - The delimiters to be used |
HeaderTokenizer | HeaderTokenizer(String header)(Code) | | Constructor. The RFC822 defined delimiters - RFC822 - are
used to delimit ATOMS. Also comments are skipped and not
returned as tokens
|
getRemainder | String getRemainder()(Code) | | Return the rest of the Header.
String rest of header. null is returned if we arealready at end of header |
next | Token next() throws WebServiceException(Code) | | Parses the next token from this String.
Clients sit in a loop calling next() to parse successive
tokens until an EOF Token is returned.
the next Token exception: WebServiceException - if the parse fails |
peek | Token peek() throws WebServiceException(Code) | | 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.
the next Token exception: WebServiceException - if the parse fails |
|
|