Home » openjdk-7 » javax » swing » text » rtf » [javadoc | source]
javax.swing.text.rtf
class: Token [javadoc | source]
java.lang.Object
   javax.swing.text.rtf.Token

Direct Known Subclasses:
    ControlWordToken, TextToken

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
public static final  int EOF    This special type inidicates the end of the input stream. 
public static final  int LCURLY    A left curly brace '{'. 
public static final  int RCURLY    A right curly brace '}'. 
public static final  int CONTROL_WORD    A control word like '\rtf1'. Tokens with this type are represented through the subclass ControlWordToken
public static final  int TEXT    A token that contains text. This is represented through the subclass TextToken
public  int type    The token type. 
Constructor:
 public Token(int type) 
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait