Package com.openinventor.util
Class AsciiStreamReader
java.lang.Object
java.io.StreamTokenizer
com.openinventor.util.AsciiStreamReader
Class to read specific fields in a stream. Each field is separated from the next
by a java whitespace character (see the java.lang.Character doc).
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
Return the current token as a float.int
readInt()
Return the current token as an integer.float
Read the next float in this stream.int
Read the next integer in this stream.Read the next string in this stream.Methods inherited from class java.io.StreamTokenizer
commentChar, eolIsSignificant, lineno, lowerCaseMode, nextToken, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars
-
Constructor Details
-
AsciiStreamReader
-
-
Method Details
-
readNextInt
Read the next integer in this stream.- Throws:
EOFException
- is thrown when TT_EOF is encountered instead of TT_NUMBERIOException
-
readNextFloat
Read the next float in this stream.- Throws:
EOFException
- is thrown when TT_EOF is encountered instead of TT_NUMBERIOException
-
readNextString
Read the next string in this stream.- Throws:
EOFException
- is thrown when TT_EOF is encountered instead of TT_WORDIOException
-
readInt
public int readInt()Return the current token as an integer. -
readFloat
public float readFloat()Return the current token as a float.
-