|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.mail.internet.HeaderTokenizer
public class 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.
| 嵌套类摘要 | |
|---|---|
static class |
HeaderTokenizer.Token
The Token class represents tokens returned by the HeaderTokenizer. |
| 字段摘要 | |
|---|---|
static String |
MIME
MIME specials |
static String |
RFC822
RFC822 specials |
| 构造方法摘要 | |
|---|---|
HeaderTokenizer(String header)
Constructor. |
|
HeaderTokenizer(String header,
String delimiters)
Constructor. |
|
HeaderTokenizer(String header,
String delimiters,
boolean skipComments)
Constructor that takes a rfc822 style header. |
|
| 方法摘要 | |
|---|---|
String |
getRemainder()
Return the rest of the Header. |
HeaderTokenizer.Token |
next()
Parses the next token from this String. |
HeaderTokenizer.Token |
peek()
Peek at the next token, without actually removing the token from the parse stream. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String RFC822
public static final String MIME
| 构造方法详细信息 |
|---|
public HeaderTokenizer(String header,
String delimiters,
boolean skipComments)
header - The rfc822 header to be tokenizeddelimiters - Set of delimiter characters
to be used to delimit ATOMS. These
are usually RFC822 or
MIMEskipComments - If true, comments are skipped and
not returned as tokens
public HeaderTokenizer(String header,
String delimiters)
header - The header that is tokenizeddelimiters - The delimiters to be usedpublic HeaderTokenizer(String header)
| 方法详细信息 |
|---|
public HeaderTokenizer.Token next()
throws ParseException
Clients sit in a loop calling next() to parse successive tokens until an EOF Token is returned.
ParseException - if the parse fails
public HeaderTokenizer.Token peek()
throws ParseException
next() is
called.
ParseException - if the parse failspublic String getRemainder()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||