Package org.apache.poi.hssf
Class HSSFParser
java.lang.Object
org.apache.poi.hssf.HSSFParser
Methods that wrap
HSSFWorkbook parsing functionality.
One difference is that the methods in this class try to
throw HSSFReadException or IOException instead of RuntimeException.
You can still get an Errors like an OutOfMemoryError.- Since:
- 5.5.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic HSSFWorkbookparse(InputStream stream) Parse the given InputStream and return a newHSSFWorkbookinstance.
-
Method Details
-
parse
Parse the given InputStream and return a newHSSFWorkbookinstance.- Parameters:
stream- the data to parse (will be closed after parsing)- Returns:
- a new
HSSFWorkbookinstance - Throws:
HSSFReadException- if an error occurs while reading the fileIOException- if an I/O error occurs while reading the file
-