org.joone.io
Class MemoryInputTokenizer
- java.lang.Object
-
- org.joone.io.MemoryInputTokenizer
-
- All Implemented Interfaces:
- PatternTokenizer
public class MemoryInputTokenizer extends java.lang.Object implements PatternTokenizer
-
-
Constructor Summary
Constructors Constructor and Description MemoryInputTokenizer()Creates a new instance of MemoryInputTokenizerMemoryInputTokenizer(double[][] array)
-
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)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)
-
-
-
Constructor Detail
-
MemoryInputTokenizer
public MemoryInputTokenizer()
Creates a new instance of MemoryInputTokenizer
-
MemoryInputTokenizer
public MemoryInputTokenizer(double[][] array)
-
-
Method Detail
-
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
-
getLineno
public int getLineno()
Return the current line number.- Specified by:
getLinenoin interfacePatternTokenizer- Returns:
- the current line number
-
getDecimalPoint
public char getDecimalPoint()
- Specified by:
getDecimalPointin interfacePatternTokenizer
-
nextLine
public boolean nextLine() throws java.io.IOExceptionGo to the next line- Specified by:
nextLinein interfacePatternTokenizer- Returns:
- false if EOF, otherwise true
- Throws:
IOException- if an I/O Error occurs
-
getNumTokens
public int getNumTokens() throws java.io.IOException- Specified by:
getNumTokensin interfacePatternTokenizer- Throws:
java.io.IOException
-
mark
public void mark() throws java.io.IOExceptionmarks the current position.- Specified by:
markin interfacePatternTokenizer- Throws:
IOException- if an I/O Error occurs
-
getTokenAt
public 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)- Specified by:
getTokenAtin interfacePatternTokenizer- Parameters:
posiz- int- Returns:
- float
- Throws:
java.io.IOException
-
getTokensArray
public double[] getTokensArray()
Returns an array of values of the current line Creation date: (17/10/2000 0.13.45)- Specified by:
getTokensArrayin interfacePatternTokenizer- Returns:
- float[]
-
setDecimalPoint
public void setDecimalPoint(char decimalPoint)
- Specified by:
setDecimalPointin interfacePatternTokenizer
-
-
DataMelt 3.0 © DataMelt by jWork.ORG