<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.io.StreamTokenizer
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.io.html">This Package</a>  <a href="java.io.SequenceInputStream.html#_top_">Previous</a>  <a href="java.io.StringBufferInputStream.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.io.StreamTokenizer
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.io.StreamTokenizer
</pre>
<hr>
<dl>
  <dt> public class <b>StreamTokenizer</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
The <code>StreamTokenizer</code> class takes an input stream and 
 parses it into "tokens", allowing the tokens to be 
 read one at a time. The parsing process is controlled by a table 
 and a number of flags that can be set to various states. The 
 stream tokenizer can recognize identifiers, numbers, quoted 
 strings, and various comment styles. 
 <p>
 Each byte read from the input stream is regarded as a character 
 in the range <code>'&#92;u0000'</code> through <code>'&#92;u00FF'</code>. 
 The character value is used to look up five possible attributes of 
 the character: <i>white space</i>, <i>alphabetic</i>, 
 <i>numeric</i>, <i>string quote</i>, and <i>comment character</i>. 
 Each character can have zero or more of these attributes. 
 <p>
 In addition, an instance has four flags. These flags indicate: 
 <ul>
 <li>Whether line terminators are to be returned as tokens or treated 
     as white space that merely separates tokens. 
 <li>Whether C-style comments are to be recognized and skipped. 
 <li>Whether C++-style comments are to be recognized and skipped. 
 <li>Whether the characters of identifiers are converted to lowercase. 
 </ul>
 <p>
 A typical application first constructs an instance of this class, 
 sets up the syntax tables, and then repeatedly loops calling the 
 <code>nextToken</code> method in each iteration of the loop until 
 it returns the value <code>TT_EOF</code>.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#nextToken()">nextToken</a>, <a href="#TT_EOF">TT_EOF</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#nval"><b>nval</b></a>
  <dd>  If the current token is a number, this field contains the value 
 of that number.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#sval"><b>sval</b></a>
  <dd>  If the current token is a word token, this field contains a 
 string giving the characters of the word token.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#TT_EOF"><b>TT_EOF</b></a>
  <dd> 
 A constant indicating that the end of the stream has been read.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#TT_EOL"><b>TT_EOL</b></a>
  <dd> 
 A constant indicating that the end of the line has been read.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#TT_NUMBER"><b>TT_NUMBER</b></a>
  <dd> 
 A constant indicating that a number token has been read.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#TT_WORD"><b>TT_WORD</b></a>
  <dd> 
 A constant indicating that a word token has been read.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ttype"><b>ttype</b></a>
  <dd> 
 After a call to the <code>nextToken</code> method, this field 
 contains the type of the token just read.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#StreamTokenizer(java.io.InputStream)"><b>StreamTokenizer</b></a>(InputStream)
  <dd>  Creates a stream tokenizer that parses the specified input 
 stream.
<b>Deprecated.</b>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#StreamTokenizer(java.io.Reader)"><b>StreamTokenizer</b></a>(Reader)
  <dd>  Create a tokenizer that parses the given character stream.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#commentChar(int)"><b>commentChar</b></a>(int)
  <dd> 
 Specified that the character argument starts a single-line 
 comment.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#eolIsSignificant(boolean)"><b>eolIsSignificant</b></a>(boolean)
  <dd>  Determines whether or not ends of line are treated as tokens.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#lineno()"><b>lineno</b></a>()
  <dd>  Return the current line number.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#lowerCaseMode(boolean)"><b>lowerCaseMode</b></a>(boolean)
  <dd>  Determines whether or not word token are automatically lowercased.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#nextToken()"><b>nextToken</b></a>()
  <dd> 
 Parses the next token from the input stream of this tokenizer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ordinaryChar(int)"><b>ordinaryChar</b></a>(int)
  <dd> 
 Specifies that the character argument is "ordinary" 
 in this tokenizer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ordinaryChars(int, int)"><b>ordinaryChars</b></a>(int, int)
  <dd> 
 Specifies that all characters <i>c</i> in the range 
 <code>low&nbsp;&lt;=&nbsp;<i>c</i>&nbsp;&lt;=&nbsp;high</code> 
 are "ordinary" in this tokenizer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#parseNumbers()"><b>parseNumbers</b></a>()
  <dd> 
 Specifies that numbers should be parsed by this tokenizer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#pushBack()"><b>pushBack</b></a>()
  <dd>  Causes the next call to the <code>nextToken</code> method of this 
 tokenizer to return the current value in the <code>ttype</code> 
 field, and not to modify the value in the <code>nval</code> or 
 <code>sval</code> field.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#quoteChar(int)"><b>quoteChar</b></a>(int)
  <dd> 
 Specifies that matching pairs of this character delimit string 
 constants in this tokenizer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#resetSyntax()"><b>resetSyntax</b></a>()
  <dd> 
 Resets this tokenizer's syntax table so that all characters are 
 "ordinary." See the <code>ordinaryChar</code> method 
 for more information on a character being ordinary.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#slashSlashComments(boolean)"><b>slashSlashComments</b></a>(boolean)
  <dd> 
 Determines whether or not the tokenizer recognizes C++-style comments.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#slashStarComments(boolean)"><b>slashStarComments</b></a>(boolean)
  <dd> 
 Determines whether or not the tokenizer recognizes C-style comments.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Returns the string representation of the current stream token.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#whitespaceChars(int, int)"><b>whitespaceChars</b></a>(int, int)
  <dd> 
 Specifies that all characters <i>c</i> in the range 
 <code>low&nbsp;&lt;=&nbsp;<i>c</i>&nbsp;&lt;=&nbsp;high</code> 
 are white space characters.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#wordChars(int, int)"><b>wordChars</b></a>(int, int)
  <dd> 
 Specifies that all characters <i>c</i> in the range 
 <code>low&nbsp;&lt;=&nbsp;<i>c</i>&nbsp;&lt;=&nbsp;high</code> 
 are word constituents.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="ttype"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>ttype</b>
<pre>
 public int ttype
</pre>
<dl>
  <dd> After a call to the <code>nextToken</code> method, this field 
 contains the type of the token just read. For a single character 
 token, its value is the single character, converted to an integer. 
 For a quoted string token (see , its value is the quote character. 
 Otherwise, its value is one of the following: 
 <ul>
 <li><code>TT_WORD</code> indicates that the token is a word.
 <li><code>TT_NUMBER</code> indicates that the token is a number.
 <li><code>TT_EOL</code> indicates that the end of line has been read. 
     The field can only have this value if the 
     <code>eolIsSignificant</code> method has been called with the 
     argument <code>true</code>. 
 <li><code>TT_EOF</code> indicates that the end of the input stream 
     has been reached. 
 </ul><p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#eolIsSignificant(boolean)">eolIsSignificant</a>, <a href="#nextToken()">nextToken</a>, <a href="#quoteChar(int)">quoteChar</a>, <a href="#TT_EOF">TT_EOF</a>, <a href="#TT_EOL">TT_EOL</a>, <a href="#TT_NUMBER">TT_NUMBER</a>, <a href="#TT_WORD">TT_WORD</a>
  </dl></dd>
</dl>
<a name="TT_EOF"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>TT_EOF</b>
<pre>
 public static final int TT_EOF
</pre>
<dl>
  <dd> A constant indicating that the end of the stream has been read.<p>
</dl>
<a name="TT_EOL"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>TT_EOL</b>
<pre>
 public static final int TT_EOL
</pre>
<dl>
  <dd> A constant indicating that the end of the line has been read.<p>
</dl>
<a name="TT_NUMBER"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>TT_NUMBER</b>
<pre>
 public static final int TT_NUMBER
</pre>
<dl>
  <dd> A constant indicating that a number token has been read.<p>
</dl>
<a name="TT_WORD"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>TT_WORD</b>
<pre>
 public static final int TT_WORD
</pre>
<dl>
  <dd> A constant indicating that a word token has been read.<p>
</dl>
<a name="sval"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>sval</b>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> sval
</pre>
<dl>
  <dd> If the current token is a word token, this field contains a 
 string giving the characters of the word token. When the current 
 token is a quoted string token, this field contains the body of 
 the string. 
 <p>
 The current token is a word when the value of the 
 <code>ttype</code> field is <code>TT_WORD</code>. The current token is
 a quoted string token when the value of the <code>ttype</code> field is
 a quote character.<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#quoteChar(int)">quoteChar</a>, <a href="#TT_WORD">TT_WORD</a>, <a href="#ttype">ttype</a>
  </dl></dd>
</dl>
<a name="nval"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>nval</b>
<pre>
 public double nval
</pre>
<dl>
  <dd> If the current token is a number, this field contains the value 
 of that number. The current token is a number when the value of 
 the <code>ttype</code> field is <code>TT_NUMBER</code>.<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#TT_NUMBER">TT_NUMBER</a>, <a href="#ttype">ttype</a>
  </dl></dd>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="StreamTokenizer"></a>
<a name="StreamTokenizer(java.io.InputStream)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>StreamTokenizer</b>
<pre>
 public StreamTokenizer(<a href="java.io.InputStream.html#_top_">InputStream</a> is)
</pre>
<dl>
<dd><b> Note: StreamTokenizer() is deprecated.</b>
<i>As of JDK version 1.1, the preferred way to tokenize an
 input stream is to convert it into a character stream, for example:
 <p>
 <pre>
   Reader r = new BufferedReader(new InputStreamReader(is));
   StreamTokenizer st = new StreamTokenizer(r);
 </pre></i>
<p>
  <dd> Creates a stream tokenizer that parses the specified input 
 stream. The stream tokenizer is initialized to the following 
 default state: 
 <ul>
 <li>All byte values <code>'A'</code> through <code>'Z'</code>, 
     <code>'a'</code> through <code>'z'</code>, and 
     <code>'&#92;u00A0'</code> through <code>'&#92;u00FF'</code> are
     considered to be alphabetic. 
 <li>All byte values <code>'&#92;u0000'</code> through 
     <code>'&#92;u0020'</code> are considered to be white space. 
 <li><code>'/'</code> is a comment character. 
 <li>Single quote <code>'&#92;''</code> and double quote <code>'"'</code> 
     are string quote characters. 
 <li>Numbers are parsed. 
 <li>Ends of lines are treated as white space, not as separate tokens. 
 <li>C-style and C++-style comments are not recognized. 
 </ul>
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> is - an input stream.
    <dt> <b>See Also:</b>
    <dd> <a href="java.io.BufferedReader.html#_top_">BufferedReader</a>, <a href="java.io.InputStreamReader.html#_top_">InputStreamReader</a>, <a href="#StreamTokenizer(java.io.Reader)">StreamTokenizer</a>
  </dl></dd>
</dl>
<a name="StreamTokenizer(java.io.Reader)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>StreamTokenizer</b>
<pre>
 public StreamTokenizer(<a href="java.io.Reader.html#_top_">Reader</a> r)
</pre>
<dl>
  <dd> Create a tokenizer that parses the given character stream.
<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="resetSyntax()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="resetSyntax"><b>resetSyntax</b></a>
<pre>
 public void resetSyntax()
</pre>
<dl>
  <dd> Resets this tokenizer's syntax table so that all characters are 
 "ordinary." See the <code>ordinaryChar</code> method 
 for more information on a character being ordinary.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#ordinaryChar(int)">ordinaryChar</a>
  </dl></dd>
</dl>
<a name="wordChars(int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="wordChars"><b>wordChars</b></a>
<pre>
 public void wordChars(int low,
                       int hi)
</pre>
<dl>
  <dd> Specifies that all characters <i>c</i> in the range 
 <code>low&nbsp;&lt;=&nbsp;<i>c</i>&nbsp;&lt;=&nbsp;high</code> 
 are word constituents. A word token consists of a word constituent 
 followed by zero or more word constituents or number constituents.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> low - the low end of the range.
    <dd> hi - the high end of the range.
  </dl></dd>
</dl>
<a name="whitespaceChars(int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="whitespaceChars"><b>whitespaceChars</b></a>
<pre>
 public void whitespaceChars(int low,
                             int hi)
</pre>
<dl>
  <dd> Specifies that all characters <i>c</i> in the range 
 <code>low&nbsp;&lt;=&nbsp;<i>c</i>&nbsp;&lt;=&nbsp;high</code> 
 are white space characters. White space characters serve only to 
 separate tokens in the input stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> low - the low end of the range.
    <dd> hi - the high end of the range.
  </dl></dd>
</dl>
<a name="ordinaryChars(int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="ordinaryChars"><b>ordinaryChars</b></a>
<pre>
 public void ordinaryChars(int low,
                           int hi)
</pre>
<dl>
  <dd> Specifies that all characters <i>c</i> in the range 
 <code>low&nbsp;&lt;=&nbsp;<i>c</i>&nbsp;&lt;=&nbsp;high</code> 
 are "ordinary" in this tokenizer. See the 
 <code>ordinaryChar</code> method for more information on a 
 character being ordinary.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> low - the low end of the range.
    <dd> hi - the high end of the range.
    <dt> <b>See Also:</b>
    <dd> <a href="#ordinaryChar(int)">ordinaryChar</a>
  </dl></dd>
</dl>
<a name="ordinaryChar(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="ordinaryChar"><b>ordinaryChar</b></a>
<pre>
 public void ordinaryChar(int ch)
</pre>
<dl>
  <dd> Specifies that the character argument is "ordinary" 
 in this tokenizer. It removes any special significance the 
 character has as a comment character, word component, string 
 delimiter, white space, or number character. When such a character 
 is encountered by the parser, the parser treates it as a
 single-character token and sets <code>ttype</code> field to the
 character value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> ch - the character.
    <dt> <b>See Also:</b>
    <dd> <a href="#ttype">ttype</a>
  </dl></dd>
</dl>
<a name="commentChar(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="commentChar"><b>commentChar</b></a>
<pre>
 public void commentChar(int ch)
</pre>
<dl>
  <dd> Specified that the character argument starts a single-line 
 comment. All characters from the comment character to the end of 
 the line are ignored by this stream tokenizer.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> ch - the character.
  </dl></dd>
</dl>
<a name="quoteChar(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="quoteChar"><b>quoteChar</b></a>
<pre>
 public void quoteChar(int ch)
</pre>
<dl>
  <dd> Specifies that matching pairs of this character delimit string 
 constants in this tokenizer. 
 <p>
 When the <code>nextToken</code> method encounters a string 
 constant, the <code>ttype</code> field is set to the string 
 delimiter and the <code>sval</code> field is set to the body of 
 the string. 
 <p>
 If a string quote character is encountered, then a string is 
 recognized, consisting of all characters after (but not including) 
 the string quote character, up to (but not including) the next 
 occurrence of that same string quote character, or a line 
 terminator, or end of file. The usual escape sequences such as 
 <code>"&#92;n"</code> and <code>"&#92;t"</code> are recognized and 
 converted to single characters as the string is parsed.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> ch - the character.
    <dt> <b>See Also:</b>
    <dd> <a href="#nextToken()">nextToken</a>, <a href="#sval">sval</a>, <a href="#ttype">ttype</a>
  </dl></dd>
</dl>
<a name="parseNumbers()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="parseNumbers"><b>parseNumbers</b></a>
<pre>
 public void parseNumbers()
</pre>
<dl>
  <dd> Specifies that numbers should be parsed by this tokenizer. The 
 syntax table of this tokenizer is modified so that each of the twelve
 characters:
 <ul><code>
      0 1 2 3 4 5 6 7 8 9 . -
 </code></ul>
 <p>
 has the "numeric" attribute. 
 <p>
 When the parser encounters a word token that has the format of a 
 double precision floating-point number, it treats the token as a 
 number rather than a word, by setting the the <code>ttype</code> 
 field to the value <code>TT_NUMBER</code> and putting the numeric 
 value of the token into the <code>nval</code> field.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#nval">nval</a>, <a href="#TT_NUMBER">TT_NUMBER</a>, <a href="#ttype">ttype</a>
  </dl></dd>
</dl>
<a name="eolIsSignificant(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="eolIsSignificant"><b>eolIsSignificant</b></a>
<pre>
 public void eolIsSignificant(boolean flag)
</pre>
<dl>
  <dd> Determines whether or not ends of line are treated as tokens.
 If the flag argument is true, this tokenizer treats end of lines 
 as tokens; the <code>nextToken</code> method returns 
 <code>TT_EOL</code> and also sets the <code>ttype</code> field to 
 this value when an end of line is read. 
 <p>
 A line is a sequence of characters ending with either a 
 carriage-return character (<code>'&#92;r'</code>) or a newline 
 character (<code>'&#92;n'</code>). In addition, a carriage-return 
 character followed immediately by a newline character is treated 
 as a single end-of-line token. 
 <p>
 If the <code>flag</code> is false, end-of-line characters are 
 treated as white space and serve only to separate tokens.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> flag - <code>true</code> indicates that end-of-line characters
                 are separate tokens; <code>false</code> indicates that
                 end-of-line characters are white space.
    <dt> <b>See Also:</b>
    <dd> <a href="#nextToken()">nextToken</a>, <a href="#ttype">ttype</a>, <a href="#TT_EOL">TT_EOL</a>
  </dl></dd>
</dl>
<a name="slashStarComments(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="slashStarComments"><b>slashStarComments</b></a>
<pre>
 public void slashStarComments(boolean flag)
</pre>
<dl>
  <dd> Determines whether or not the tokenizer recognizes C-style comments.
 If the flag argument is <code>true</code>, this stream tokenizer 
 recognizes C-style comments. All text between successive 
 occurrences of <code>/*</code> and <code>*&#47;</code> are discarded. 
 <p>
 If the flag argument is <code>false</code>, then C-style comments 
 are not treated specially.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> flag - <code>true</code> indicates to recognize and ignore
                 C-style comments.
  </dl></dd>
</dl>
<a name="slashSlashComments(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="slashSlashComments"><b>slashSlashComments</b></a>
<pre>
 public void slashSlashComments(boolean flag)
</pre>
<dl>
  <dd> Determines whether or not the tokenizer recognizes C++-style comments.
 If the flag argument is <code>true</code>, this stream tokenizer 
 recognizes C++-style comments. Any occurrence of two consecutive 
 slash characters (<code>'/'</code>) is treated as the beginning of 
 a comment that extends to the end of the line. 
 <p>
 If the flag argument is <code>false</code>, then C++-style 
 comments are not treated specially.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> flag - <code>true</code> indicates to recognize and ignore
                 C++-style comments.
  </dl></dd>
</dl>
<a name="lowerCaseMode(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="lowerCaseMode"><b>lowerCaseMode</b></a>
<pre>
 public void lowerCaseMode(boolean fl)
</pre>
<dl>
  <dd> Determines whether or not word token are automatically lowercased.
 If the flag argument is <code>true</code>, then the value in the 
 <code>sval</code> field is lowercased whenever a word token is 
 returned (the <code>ttype</code> field has the 
 value <code>TT_WORD</code> by the <code>nextToken</code> method 
 of this tokenizer. 
 <p>
 If the flag argument is <code>false</code>, then the 
 <code>sval</code> field is not modified.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> fl - <code>true</code> indicates that all word tokens should
               be lowercased.
    <dt> <b>See Also:</b>
    <dd> <a href="#nextToken()">nextToken</a>, <a href="#ttype">ttype</a>, <a href="#TT_WORD">TT_WORD</a>
  </dl></dd>
</dl>
<a name="nextToken()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="nextToken"><b>nextToken</b></a>
<pre>
 public int nextToken() throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Parses the next token from the input stream of this tokenizer. 
 The type of the next token is returned in the <code>ttype</code> 
 field. Additional information about the token may be in the 
 <code>nval</code> field or the <code>sval</code> field of this 
 tokenizer. 
 <p>
 Typical clients of this
 class first set up the syntax tables and then sit in a loop
 calling nextToken to parse successive tokens until TT_EOF
 is returned.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the value of the <code>ttype</code> field.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
    <dt> <b>See Also:</b>
    <dd> <a href="#nval">nval</a>, <a href="#sval">sval</a>, <a href="#ttype">ttype</a>
  </dl></dd>
</dl>
<a name="pushBack()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="pushBack"><b>pushBack</b></a>
<pre>
 public void pushBack()
</pre>
<dl>
  <dd> Causes the next call to the <code>nextToken</code> method of this 
 tokenizer to return the current value in the <code>ttype</code> 
 field, and not to modify the value in the <code>nval</code> or 
 <code>sval</code> field.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#nextToken()">nextToken</a>, <a href="#nval">nval</a>, <a href="#sval">sval</a>, <a href="#ttype">ttype</a>
  </dl></dd>
</dl>
<a name="lineno()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="lineno"><b>lineno</b></a>
<pre>
 public int lineno()
</pre>
<dl>
  <dd> Return the current line number.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the current line number of this stream tokenizer.
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Returns the string representation of the current stream token.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a string representation of the token specified by the
          <code>ttype</code>, <code>nval</code>, and <code>sval</code>
          fields.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
    <dt> <b>See Also:</b>
    <dd> <a href="#nval">nval</a>, <a href="#sval">sval</a>, <a href="#ttype">ttype</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.io.html">This Package</a>  <a href="java.io.SequenceInputStream.html#_top_">Previous</a>  <a href="java.io.StringBufferInputStream.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
