water.parser
Class XlsParser

java.lang.Object
  extended by water.Iced
      extended by water.parser.CustomParser
          extended by water.parser.XlsParser
All Implemented Interfaces:
java.lang.Cloneable, org.apache.poi.hssf.eventusermodel.HSSFListener, Freezable

public class XlsParser
extends CustomParser
implements org.apache.poi.hssf.eventusermodel.HSSFListener


Nested Class Summary
 
Nested classes/interfaces inherited from class water.parser.CustomParser
CustomParser.CustomInspectDataOut, CustomParser.DataIn, CustomParser.DataOut, CustomParser.ParserSetup, CustomParser.ParserType, CustomParser.PSetupGuess, CustomParser.StreamData, CustomParser.StreamDataOut
 
Field Summary
 
Fields inherited from class water.parser.CustomParser
_setup, CHAR_COMMA, CHAR_CR, CHAR_DOUBLE_QUOTE, CHAR_FF, CHAR_LF, CHAR_NULL, CHAR_SINGLE_QUOTE, CHAR_SPACE, CHAR_TAB, CHAR_VT, MAX_PREVIEW_COLS, MAX_PREVIEW_LINES
 
Constructor Summary
XlsParser()
           
XlsParser(CustomParser.ParserSetup setup)
           
 
Method Summary
 XlsParser clone()
           
static CustomParser.PSetupGuess guessSetup(byte[] bits)
          Try to parse the bits as svm light format, return SVMParser instance if the input is in svm light format, null otherwise.
 boolean isCompatible(CustomParser p)
           
 void processRecord(org.apache.poi.hssf.record.Record record)
           
 CustomParser.DataOut streamParse(java.io.InputStream is, CustomParser.DataOut dout)
           
 
Methods inherited from class water.parser.CustomParser
headers, isEOL, isWhitespace, parallelParse, parallelParseSupported, streamParse
 
Methods inherited from class water.Iced
frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XlsParser

public XlsParser()

XlsParser

public XlsParser(CustomParser.ParserSetup setup)
Method Detail

clone

public XlsParser clone()
Specified by:
clone in class CustomParser

streamParse

public CustomParser.DataOut streamParse(java.io.InputStream is,
                                        CustomParser.DataOut dout)
                                 throws java.lang.Exception
Overrides:
streamParse in class CustomParser
Throws:
java.lang.Exception

guessSetup

public static CustomParser.PSetupGuess guessSetup(byte[] bits)
Try to parse the bits as svm light format, return SVMParser instance if the input is in svm light format, null otherwise.

Parameters:
bits -
Returns:
SVMLightPArser instance or null

processRecord

public void processRecord(org.apache.poi.hssf.record.Record record)
Specified by:
processRecord in interface org.apache.poi.hssf.eventusermodel.HSSFListener

isCompatible

public boolean isCompatible(CustomParser p)
Overrides:
isCompatible in class CustomParser