org.joone.io
Interface PatternTokenizer
-
- All Known Implementing Classes:
- ImageInputTokenizer, MemoryInputTokenizer, StreamInputTokenizer, XLSInputTokenizer
public interface PatternTokenizerInterface to extract tokens from an input stream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description chargetDecimalPoint()intgetLineno()Return the current line number.intgetNumTokens()doublegetTokenAt(int posiz)Returns the value of the token at 'posiz' column of the current line Creation date: (17/10/2000 0.30.08)double[]getTokensArray()Returns an array of values of the current line Creation date: (17/10/2000 0.13.45)voidmark()marks the current position.booleannextLine()Go to the next linevoidresetInput()Go to the last marked position.voidsetDecimalPoint(char decimalPoint)
-
-
-
Method Detail
-
getLineno
int getLineno()
Return the current line number.- Returns:
- the current line number
-
getNumTokens
int getNumTokens() throws java.io.IOException- Throws:
java.io.IOException
-
getTokenAt
double getTokenAt(int posiz) throws java.io.IOExceptionReturns the value of the token at 'posiz' column of the current line Creation date: (17/10/2000 0.30.08)- Parameters:
posiz- int- Returns:
- float
- Throws:
java.io.IOException
-
getTokensArray
double[] getTokensArray()
Returns an array of values of the current line Creation date: (17/10/2000 0.13.45)- Returns:
- float[]
-
mark
void mark() throws java.io.IOException
marks the current position.- Throws:
IOException- if an I/O Error occurs
-
nextLine
boolean nextLine() throws java.io.IOExceptionGo to the next line- Returns:
- false if EOF, otherwise true
- Throws:
IOException- if an I/O Error occurs
-
resetInput
void resetInput() throws java.io.IOExceptionGo to the last marked position. Begin of input stream if no mark detected.- Throws:
java.io.IOException
-
getDecimalPoint
char getDecimalPoint()
-
setDecimalPoint
void setDecimalPoint(char decimalPoint)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG