asked on
Workbook workbook = WorkbookFactory.create( inputStream );
ASKER
ASKER
@Override
public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException {
.........................
}
final AutoDetectParser myLibraryParser = new AutoDetectParser();
ContentHandler contentHandler = new BodyContentHandler();
Metadata metadata = new Metadata();
ParseContext parseContext = new ParseContext();
try {
myLibraryParser.parse(inputStream, contentHandler, metadata, parseContext);
}
catch (IOException e) {
e.printStackTrace();
}
catch (SAXException e) {
e.printStackTrace();
}
catch (TikaException e) {
e.printStackTrace();
}
ASKER
ASKER
Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.
TRUSTED BY
Do you know if you are usiing HSSF or XSSF and how many rows you have in this table?
It looks like if there are less than 65535 - you can use less memory with HSSF