public void processDocument( HWPFDocumentCore wordDocument ) { try { final SummaryInformation summaryInformation = wordDocument .getSummaryInformation(); if ( summaryInformation != null ) { processDocumentInformation( summaryInformation ); } } catch ( Exception exc ) { logger.log( POILogger.WARN, "Unable to process document summary information: ", exc, exc ); } final Range docRange = wordDocument.getRange(); if ( docRange.numSections() == 1 ) { processSingleSection( wordDocument, docRange.getSection( 0 ) ); afterProcess(); return; } processDocumentPart( wordDocument, docRange ); afterProcess(); }
public void processDocument( HWPFDocumentCore wordDocument ) { try { final SummaryInformation summaryInformation = wordDocument .getSummaryInformation(); if ( summaryInformation != null ) { processDocumentInformation( summaryInformation ); } } catch ( Exception exc ) { logger.log( POILogger.WARN, "Unable to process document summary information: ", exc, exc ); } final Range docRange = wordDocument.getRange(); if ( docRange.numSections() == 1 ) { processSingleSection( wordDocument, docRange.getSection( 0 ) ); afterProcess(); return; } processDocumentPart( wordDocument, docRange ); afterProcess(); }