/** * This constructor loads a Word document from an InputStream. * * @param istream The InputStream that contains the Word document. * @throws IOException If there is an unexpected IOException from the passed * in InputStream. */ public HWPFDocumentCore(InputStream istream) throws IOException { //do Ole stuff this( verifyAndBuildPOIFS(istream) ); }
/** * This constructor loads a Word document from an InputStream. * * @param istream The InputStream that contains the Word document. * @throws IOException If there is an unexpected IOException from the passed * in InputStream. */ public HWPFDocumentCore(InputStream istream) throws IOException { //do Ole stuff this( verifyAndBuildPOIFS(istream) ); }
public static HWPFDocumentCore loadDoc( InputStream inputStream ) throws IOException { return loadDoc( HWPFDocumentCore.verifyAndBuildPOIFS( inputStream ) ); }
public static HWPFDocumentCore loadDoc( InputStream inputStream ) throws IOException { return loadDoc( HWPFDocumentCore.verifyAndBuildPOIFS( inputStream ) ); }
private static HWPFDocumentCore loadDoc( InputStream inputStream ) throws IOException { final POIFSFileSystem poifsFileSystem = HWPFDocumentCore.verifyAndBuildPOIFS( inputStream ); // NOSONAR try { return new HWPFDocument( poifsFileSystem ); } catch ( OldWordFileFormatException exc ) { return new HWPFOldDocument( poifsFileSystem ); } }
private static HWPFDocumentCore loadDoc( InputStream inputStream ) throws IOException { final POIFSFileSystem poifsFileSystem = HWPFDocumentCore .verifyAndBuildPOIFS( inputStream ); try { return new HWPFDocument( poifsFileSystem ); } catch ( OldWordFileFormatException exc ) { return new HWPFOldDocument( poifsFileSystem ); } }