THE PACKAGE JAVA.IO
java.io.StreamTokenizer
22.14
22.14.17
public void eolIsSignificant(boolean flag)
This
StreamTokenizer
henceforth recognizes line terminators as tokens if and
only if the
flag
argument is
true
.
22.14.18
public void slashStarComments(boolean flag)
This
StreamTokenizer
henceforth recognizes and skips Java style traditional
comments, which are delimited by
/*
and
*/
and do not nest, if and only if the
flag
argument is
true
.
22.14.19
public void slashSlashComments(boolean flag)
This
StreamTokenizer
henceforth recognizes and skips Java style end of line
comments that start with
//
if and only if the
flag
argument is
true
.
22.14.20
public void lowerCaseMode(boolean flag)
This
StreamTokenizer
henceforth converts all the characters in identifiers to
lowercase if and only if the
flag
argument is
true
.
22.14.21
public int nextToken() throws IOException
If the previous token was pushed back ( 22.14.22), then the value of
ttype
is
returned, effectively causing that same token to be reread.
Otherwise, this method parses the next token in the contained input stream.
The type of the token is returned; this same value is also made available in the
ttype
field, and related data may be made available in the
sval
and
nval
fields.
First, whitespace characters are skipped, except that if a line terminator is
encountered and this
StreamTokenizer
is currently recognizing line terminators,
then the type of the token is
TT_EOL
.
If a numeric character is encountered, then an attempt is made to recognize a
number. If the first character is
and the next character is not numeric, then the
is considered to be an ordinary character and is recognized as a token in its
own right. Otherwise, a number is parsed, stopping before the next occurrence of
, the second occurrence of
.
, the first nonnumeric character encountered, or
end of file, whichever comes first. The type of the token is
TT_NUMBER
and its
value is made available in the field
nval
.
717
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved