|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiicm.vrml.pw.StrTokenizer
public class StrTokenizer
StrTokenizer - read VRML stream tokens Copyright (c) 1997 IICM
Field Summary | |
---|---|
private byte[] |
backbuf_
|
private int |
backoffs_
|
private int |
buffered_
|
private int |
c_
|
private CharArray |
commentBuffer
|
private java.io.InputStream |
in_
|
private int |
lineno_
|
private int |
optsize
|
Constructor Summary | |
---|---|
StrTokenizer(java.io.InputStream is)
construct a StrTokenizer for an InputStream. |
Method Summary | |
---|---|
boolean |
eof()
return flag whether end of file was reached |
private int |
getChar()
get next character from stream or backbuffer (internal) |
int |
lineno()
current line number |
int |
nextChar()
look at next character without reading a new one. |
(package private) java.lang.String |
OutputComment()
OutputComment outputs the commen. |
void |
putbackString(java.lang.String s)
put back a String. |
int |
readChar()
read a character (skips whitespace and comments) |
double |
readFloatValue()
read a floating point number. format: [+-][0-9]*{[.][0-9]*}{[Ee][+-][0-9]*} |
java.lang.String |
readIdentifier()
read an identifier String (skips whitespace and comments) |
int |
readIntValue()
read an integer. format: [+-][0-9]* or [+-]0x[0-9A-Fa-f]* |
int |
readLine(char[] buf)
read a whole line (until \r or \n) into a char[] buffer. |
java.lang.String |
readQuotedString()
read a quoted String ("..."). |
void |
skipComment()
skip any amount of whitespace - handle any comment. |
(package private) boolean |
skipCommentReturn(boolean arg)
call skipComment and return the argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.InputStream in_
private final int optsize
private byte[] backbuf_
private int buffered_
private int backoffs_
private int c_
private int lineno_
private CharArray commentBuffer
Constructor Detail |
---|
public StrTokenizer(java.io.InputStream is)
Method Detail |
---|
public boolean eof()
public int lineno()
public int nextChar()
skipComment()
private final int getChar() throws java.io.IOException
java.io.IOException
public void skipComment() throws java.io.IOException
java.io.IOException
java.lang.String OutputComment() throws java.io.IOException
java.io.IOException
boolean skipCommentReturn(boolean arg) throws java.io.IOException
java.io.IOException
public int readLine(char[] buf) throws java.io.IOException
java.io.IOException
public int readChar() throws java.io.IOException
java.io.IOException
public java.lang.String readIdentifier() throws java.io.IOException
java.io.IOException
public java.lang.String readQuotedString() throws java.io.IOException
java.io.IOException
public int readIntValue() throws java.io.IOException
java.io.IOException
public double readFloatValue() throws java.io.IOException
java.io.IOException
public void putbackString(java.lang.String s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |