| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.internet.HeaderTokenizer.Token
The Token class represents tokens returned by the HeaderTokenizer.
| Field Summary | |
| static int | ATOMToken type indicating an ATOM. | 
| static int | COMMENTToken type indicating a comment. | 
| static int | EOFToken type indicating end of input. | 
| static int | QUOTEDSTRINGToken type indicating a quoted string. | 
| Constructor Summary | |
| HeaderTokenizer.Token(int type,
                      java.lang.String value)Constructor. | |
| Method Summary | |
|  int | getType()Return the type of the token. | 
|  java.lang.String | getValue()Returns the value of the token just read. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int ATOM
public static final int QUOTEDSTRING
public static final int COMMENT
public static final int EOF
| Constructor Detail | 
public HeaderTokenizer.Token(int type,
                             java.lang.String value)
type - Token typevalue - Token value| Method Detail | 
public 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 java.lang.String getValue()
| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved.