1. Streamtokenizer usage Lookup API:java.lang.Object inheritors Java.io.StreamTokenizerStreamTokenizer class get the input stream and parse it as token Allows one tag to be read at a time. The parsing process is controlled by a table and many flags that can be set to various states. The markup generator for this stream can recognize identifiers, numbers, referenced strings, and various annotation styles. In addition, an instance has four tokens (the return value is int) tt_eof indicates a constant that has been read to the end of the stream Tt_eol indicates a constant that has been read to the end of the line Tt_number a constant that indicates a number tag that has been read Tt_word A constant indicating that a text tag has been read and then there are several fields Nval (Double type) If the current marker is a number, this field will contain the value of that number. Sval (String type) if the current tag is a text marker, this field contains a string that gives the character of the literal tag. Ttype (int, for the previous four tags) after calling the NextToken method, this field will contain the type of the tag that was just read.
• Tool "java Summary