org.joone.io
Class StreamInputTokenizer
- java.lang.Object
-
- org.joone.io.StreamInputTokenizer
-
- All Implemented Interfaces:
- PatternTokenizer
public class StreamInputTokenizer extends java.lang.Object implements PatternTokenizer
-
-
Constructor Summary
Constructors Constructor and Description StreamInputTokenizer(java.io.Reader in)Creates new StreamInputTokenizerStreamInputTokenizer(java.io.Reader in, int maxBufSize)Creates new StreamInputTokenizer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description chargetDecimalPoint()intgetLineno()Return the current line number.intgetNumTokens()doublegetTokenAt(int posiz)Insert the method's description here.double[]getTokensArray()Insert the method's description here.voidmark()mark the current position.booleannextLine()Fetchs the next line and extracts all the tokensvoidresetInput()Go to the last marked position.voidsetDecimalPoint(char dp)
-
-
-
Constructor Detail
-
StreamInputTokenizer
public StreamInputTokenizer(java.io.Reader in) throws java.io.IOExceptionCreates new StreamInputTokenizer- Parameters:
in- The input stream- Throws:
java.io.IOException
-
StreamInputTokenizer
public StreamInputTokenizer(java.io.Reader in, int maxBufSize) throws java.io.IOExceptionCreates new StreamInputTokenizer- Parameters:
in- The input streammaxBufSize- the max dimension of the input buffer- Throws:
java.io.IOException
-
-
Method Detail
-
getLineno
public int getLineno()
Return the current line number.- Specified by:
getLinenoin interfacePatternTokenizer- Returns:
- the current line number
-
getNumTokens
public int getNumTokens() throws java.io.IOException- Specified by:
getNumTokensin interfacePatternTokenizer- Throws:
java.io.IOException
-
getTokenAt
public double getTokenAt(int posiz) throws java.io.IOExceptionInsert the method's description here. Creation date: (17/10/2000 0.30.08)- Specified by:
getTokenAtin interfacePatternTokenizer- Parameters:
posiz- int- Returns:
- float
- Throws:
java.io.IOException
-
getTokensArray
public double[] getTokensArray()
Insert the method's description here. Creation date: (17/10/2000 0.13.45)- Specified by:
getTokensArrayin interfacePatternTokenizer- Returns:
- float[]
-
mark
public void mark() throws java.io.IOExceptionmark the current position.- Specified by:
markin interfacePatternTokenizer- Throws:
IOException- if an I/O Error occurs
-
nextLine
public boolean nextLine() throws java.io.IOExceptionFetchs the next line and extracts all the tokens- Specified by:
nextLinein interfacePatternTokenizer- Returns:
- false if EOF, otherwise true
- Throws:
java.io.IOException- if an I/O Error occurs
-
resetInput
public void resetInput() throws java.io.IOExceptionGo to the last marked position. Begin of input stream if no mark detected.- Specified by:
resetInputin interfacePatternTokenizer- Throws:
java.io.IOException
-
setDecimalPoint
public void setDecimalPoint(char dp)
- Specified by:
setDecimalPointin interfacePatternTokenizer
-
getDecimalPoint
public char getDecimalPoint()
- Specified by:
getDecimalPointin interfacePatternTokenizer
-
-
DataMelt 3.0 © DataMelt by jWork.ORG