|
|||||||||
| Home >> All >> javax >> swing >> text >> [ rtf overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.swing.text.rtf
Class Token

java.lang.Objectjavax.swing.text.rtf.Token
- Direct Known Subclasses:
- ControlWordToken, TextToken
- class Token
- extends java.lang.Object
Represents a simple token that the RTFScanner can read. A simple only has a type (like LCURLY or RCURLY). More complex tokens may attach data to the token.
| Field Summary | |
static int |
CONTROL_WORD
A control word like '\rtf1'. |
static int |
EOF
This special type inidicates the end of the input stream. |
static int |
LCURLY
A left curly brace '{'. |
static int |
RCURLY
A right curly brace '}'. |
static int |
TEXT
A token that contains text. |
int |
type
The token type. |
| Constructor Summary | |
Token(int type)
Constructs a new Token with the specified type. |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
EOF
public static final int EOF
- This special type inidicates the end of the input stream.
- See Also:
- Constant Field Values
LCURLY
public static final int LCURLY
- A left curly brace '{'.
- See Also:
- Constant Field Values
RCURLY
public static final int RCURLY
- A right curly brace '}'.
- See Also:
- Constant Field Values
CONTROL_WORD
public static final int CONTROL_WORD
- A control word like '\rtf1'. Tokens with this type are represented
through the subclass ControlWordToken.
- See Also:
- Constant Field Values
TEXT
public static final int TEXT
- A token that contains text. This is represented through the subclass
TextToken.
- See Also:
- Constant Field Values
type
public int type
- The token type.
| Constructor Detail |
Token
public Token(int type)
- Constructs a new Token with the specified type.
|
|||||||||
| Home >> All >> javax >> swing >> text >> [ rtf overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javax.swing.text.rtf.Token