public class StreamInputTokenizer extends java.lang.Object implements PatternTokenizer
Constructor and Description |
---|
StreamInputTokenizer(java.io.Reader in)
Creates new StreamInputTokenizer
|
StreamInputTokenizer(java.io.Reader in,
int maxBufSize)
Creates new StreamInputTokenizer
|
Modifier and Type | Method and Description |
---|---|
char |
getDecimalPoint() |
int |
getLineno()
Return the current line number.
|
int |
getNumTokens() |
double |
getTokenAt(int posiz)
Insert the method's description here.
|
double[] |
getTokensArray()
Returns tokenized line
Creation date: (17/10/2000 0.13.45)
|
void |
mark()
mark the current position.
|
boolean |
nextLine()
Fetchs the next line and extracts all the tokens
|
void |
resetInput()
Go to the last marked position.
|
void |
setDecimalPoint(char dp) |
public StreamInputTokenizer(java.io.Reader in) throws java.io.IOException
in
- The input streamjava.io.IOException
public StreamInputTokenizer(java.io.Reader in, int maxBufSize) throws java.io.IOException
in
- The input streammaxBufSize
- the max dimension of the input bufferjava.io.IOException
public int getLineno()
getLineno
in interface PatternTokenizer
public int getNumTokens() throws java.io.IOException
getNumTokens
in interface PatternTokenizer
java.io.IOException
public double getTokenAt(int posiz) throws java.io.IOException
getTokenAt
in interface PatternTokenizer
posiz
- intjava.io.IOException
public double[] getTokensArray()
getTokensArray
in interface PatternTokenizer
public void mark() throws java.io.IOException
mark
in interface PatternTokenizer
IOException
- if an I/O Error occurspublic boolean nextLine() throws java.io.IOException
nextLine
in interface PatternTokenizer
IOException
- if an I/O Error occurspublic void resetInput() throws java.io.IOException
resetInput
in interface PatternTokenizer
java.io.IOException
public void setDecimalPoint(char dp)
setDecimalPoint
in interface PatternTokenizer
public char getDecimalPoint()
getDecimalPoint
in interface PatternTokenizer
Submit Feedback to pmarrone@users.sourceforge.net