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