Home » openjdk-7 » javax » swing » text » rtf » [javadoc | source]
javax.swing.text.rtf
class: RTFScanner [javadoc | source]
java.lang.Object
   javax.swing.text.rtf.RTFScanner
Provides a scanner that scans an InputStream for tokens of the RTF syntax. This scanner is based upon the RTF specification 1.6 available at: RTF specification at MSDN
Constructor:
 public RTFScanner(InputStream stream) 
    Parameters:
    stream - the InputStream to read RTF data from
 public RTFScanner(Reader reader) 
    Constructs a new RTFScanner for the given Reader . If the reader is not an instance of BufferedReader then it is wrapped into a BufferedReader.
Method from javax.swing.text.rtf.RTFScanner Summary:
readToken
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.rtf.RTFScanner Detail:
 public Token readToken() throws IOException 
    Reads in the next Token from the stream.