Package org.apache.poi.hssf
Class HSSFParser
- java.lang.Object
-
- org.apache.poi.hssf.HSSFParser
-
public final class HSSFParser extends Object
Methods that wrapHSSFWorkbookparsing functionality. One difference is that the methods in this class try to throwHSSFReadExceptionorIOExceptioninstead ofRuntimeException. You can still get anErrors like anOutOfMemoryError.- Since:
- POI 5.5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HSSFWorkbookparse(InputStream stream)Parse the given InputStream and return a newHSSFWorkbookinstance.
-
-
-
Method Detail
-
parse
public static HSSFWorkbook parse(InputStream stream) throws HSSFReadException, IOException
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
-
-