public final class HWPFParser extends Object
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.| Modifier and Type | Method and Description |
|---|---|
static HWPFDocument |
parse(InputStream stream)
Parse the given InputStream and return a new
HWPFDocument instance. |
public static HWPFDocument parse(InputStream stream) throws HWPFReadException, IOException
HWPFDocument instance.stream - the data to parse (will be closed after parsing)HWPFDocument instanceHWPFReadException - if an error occurs while reading the fileIOException - if an I/O error occurs while reading the file