public class ExcelToText
extends java.lang.Object
implements org.apache.poi.hssf.eventusermodel.HSSFListener
Modifier and Type | Field and Description |
---|---|
protected org.apache.poi.hssf.record.SSTRecord |
sstrec |
protected java.lang.StringBuilder |
text |
Constructor and Description |
---|
ExcelToText()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.io.Reader |
parse(java.io.InputStream document)
Extract text from XLS.
|
void |
processRecord(org.apache.poi.hssf.record.Record record)
This method listens for incoming records and handles them as required.
|
protected final java.lang.StringBuilder text
protected org.apache.poi.hssf.record.SSTRecord sstrec
public java.io.Reader parse(java.io.InputStream document) throws org.openmdx.base.exception.ServiceException
document
- org.openmdx.base.exception.ServiceException
public void processRecord(org.apache.poi.hssf.record.Record record)
processRecord
in interface org.apache.poi.hssf.eventusermodel.HSSFListener
record
- The record that was found while reading.This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.