StreamTokenizer.StreamTokenizer

StreamTokenizer.StreamTokenizer

Class Overview | Class Members | This Package | All Packages

Syntax 1
public StreamTokenizer( InputStream is )
Parameters
is
an input stream.
Description
Note: StreamTokenizer() is deprecated. As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example:

   Reader r = new BufferedReader(new InputStreamReader(is));
   StreamTokenizer st = new StreamTokenizer(r);
 

Creates a stream tokenizer that parses the specified input stream. The stream tokenizer is initialized to the following default state:

See Also
BufferedReader, InputStreamReader, StreamTokenizer



Syntax 2
public StreamTokenizer( Reader r )
Description
Create a tokenizer that parses the given character stream.