|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iicm.vrml.pw.StrTokenizer
StrTokenizer - read VRML stream tokens
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 |
int |
lineno()
current line number |
int |
nextChar()
look at next character without reading a new one. returns -1 on eof |
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. if the line is longer than the buffer, the rest is skipped. the newline character is not appended to the buffer |
java.lang.String |
readQuotedString()
read a quoted String ("..."). the quotes themselves are not part of the String returned. returns empty string if next char is not '"' |
void |
skipComment()
skip any amount of whitspace or comment. called by all read operations |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public StrTokenizer(java.io.InputStream is)
Method Detail |
public boolean eof()
public int lineno()
public int nextChar()
skipComment
public void skipComment() throws java.io.IOException
public int readLine(char[] buf) throws java.io.IOException
public int readChar() throws java.io.IOException
public java.lang.String readIdentifier() throws java.io.IOException
public java.lang.String readQuotedString() throws java.io.IOException
public int readIntValue() throws java.io.IOException
public double readFloatValue() throws java.io.IOException
public void putbackString(java.lang.String s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |