org.joone.io
Class XLSInputTokenizer
- java.lang.Object
-
- org.joone.io.XLSInputTokenizer
-
- All Implemented Interfaces:
- PatternTokenizer
public class XLSInputTokenizer extends java.lang.Object implements PatternTokenizer
-
-
Constructor Summary
Constructors Constructor and Description XLSInputTokenizer(HSSFSheet i_sheet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description chargetDecimalPoint()intgetLineno()Return the current line number.intgetNumTokens()doublegetTokenAt(int p0)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 dp)
-
-
-
Constructor Detail
-
XLSInputTokenizer
public XLSInputTokenizer(HSSFSheet i_sheet) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getLineno
public int getLineno()
Description copied from interface:PatternTokenizerReturn 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 p0) throws java.io.IOExceptionDescription copied from interface:PatternTokenizerReturns 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:
p0- int- Returns:
- float
- Throws:
java.io.IOException
-
getTokensArray
public double[] getTokensArray()
Description copied from interface:PatternTokenizerReturns an array of values of the current line Creation date: (17/10/2000 0.13.45)- Specified by:
getTokensArrayin interfacePatternTokenizer- Returns:
- float[]
-
mark
public void mark() throws java.io.IOExceptionDescription copied from interface:PatternTokenizermarks the current position.- Specified by:
markin interfacePatternTokenizer- Throws:
IOException- if an I/O Error occurs
-
nextLine
public boolean nextLine() throws java.io.IOExceptionDescription copied from interface:PatternTokenizerGo to the next line- Specified by:
nextLinein interfacePatternTokenizer- Returns:
- false if EOF, otherwise true
- Throws:
IOException- if an I/O Error occurs
-
resetInput
public void resetInput() throws java.io.IOExceptionDescription copied from interface:PatternTokenizerGo 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