Package org.apache.poi.hpbf.extractor
Class PublisherTextExtractor
java.lang.Object
org.apache.poi.hpbf.extractor.PublisherTextExtractor
- All Implemented Interfaces:
Closeable,AutoCloseable,POIOLE2TextExtractor,POITextExtractor
Extract text from HPBF Publisher files
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionReturn the underlying POIDocumentgetText()Retrieves all the text from the document.booleanvoidsetCloseFilesystem(boolean doCloseFilesystem) voidsetHyperlinksByDefault(boolean hyperlinksByDefault) Should a call to getText() return hyperlinks inline with the text? Default is noMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getMetadataTextExtractor, getRoot, getSummaryInformationMethods inherited from interface org.apache.poi.extractor.POITextExtractor
close
-
Constructor Details
-
PublisherTextExtractor
-
PublisherTextExtractor
- Throws:
IOException
-
PublisherTextExtractor
- Throws:
IOException
-
PublisherTextExtractor
- Throws:
IOException
-
-
Method Details
-
setHyperlinksByDefault
public void setHyperlinksByDefault(boolean hyperlinksByDefault) Should a call to getText() return hyperlinks inline with the text? Default is no -
getText
Description copied from interface:POITextExtractorRetrieves all the text from the document. How cells, paragraphs etc are separated in the text is implementation specific - see the javadocs for a specific project for details.- Specified by:
getTextin interfacePOITextExtractor- Returns:
- All the text from the document
-
getDocument
Description copied from interface:POIOLE2TextExtractorReturn the underlying POIDocument- Specified by:
getDocumentin interfacePOIOLE2TextExtractor- Specified by:
getDocumentin interfacePOITextExtractor- Returns:
- the underlying POIDocument
-
setCloseFilesystem
public void setCloseFilesystem(boolean doCloseFilesystem) - Specified by:
setCloseFilesystemin interfacePOITextExtractor- Parameters:
doCloseFilesystem-true(default), if underlying resources/filesystem should be closed onPOITextExtractor.close()
-
isCloseFilesystem
public boolean isCloseFilesystem()- Specified by:
isCloseFilesystemin interfacePOITextExtractor- Returns:
true, if resources/filesystem should be closed onPOITextExtractor.close()
-
getFilesystem
- Specified by:
getFilesystemin interfacePOITextExtractor- Returns:
- The underlying resources/filesystem
-