THE PACKAGE JAVA.IO
java.io.StreamTokenizer
22.14
22.14.23
public int lineno()
The number of the line on which the current token appeared is returned. The first
token in the input stream, if not a line terminator, is considered to appear on line
1
.
A line terminator token is considered to appear on the line that it precedes, not on
the line it terminates; thus, the first line terminator in the input stream is consid 
ered to be on line
2
.
22.14.24
public String toString()
The current token and the current line number are converted to a string of the
form:
"Token[x], line m"
where
m
 is the current line number in decimal form and
x
 depends on the type of
the current token:
If the token type is
TT_EOF
, then
x
 is  
EOF
 .
If the token type is
TT_EOL
, then
x
 is  
EOL
 .
If the token type is
TT_WORD
, then
x
 is the current value of
sval
 ( 22.14.6).
If the token type is
TT_NUMBER
, then
x
 is  
n=
  followed by the result of con 
verting the current value of
nval
 ( 22.14.7) to a string ( 20.10.15).
Overrides the
toString
 method of
Object
 ( 20.1.2).
719






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

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