Package org.apache.poi.hpbf.extractor
Class PublisherTextExtractor
java.lang.Object
org.apache.poi.extractor.POITextExtractor
org.apache.poi.extractor.POIOLE2TextExtractor
org.apache.poi.hpbf.extractor.PublisherTextExtractor
- All Implemented Interfaces:
Closeable
,AutoCloseable
Extract text from HPBF Publisher files
-
Field Summary
Fields inherited from class org.apache.poi.extractor.POIOLE2TextExtractor
document
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetText()
Retrieves all the text from the document.static void
void
setHyperlinksByDefault
(boolean hyperlinksByDefault) Should a call to getText() return hyperlinks inline with the text? Default is noMethods inherited from class org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getDocument, getMetadataTextExtractor, getRoot, getSummaryInformation
Methods inherited from class org.apache.poi.extractor.POITextExtractor
close, setFilesystem
-
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 class:POITextExtractor
Retrieves 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:
getText
in classPOITextExtractor
- Returns:
- All the text from the document
-
main
- Throws:
Exception
-