public final class PublisherTextExtractor extends java.lang.Object implements POIOLE2TextExtractor
| Constructor and Description |
|---|
PublisherTextExtractor(DirectoryNode dir) |
PublisherTextExtractor(HPBFDocument doc) |
PublisherTextExtractor(java.io.InputStream is) |
PublisherTextExtractor(POIFSFileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
HPBFDocument |
getDocument()
Return the underlying POIDocument
|
HPBFDocument |
getFilesystem() |
java.lang.String |
getText()
Retrieves all the text from the document.
|
boolean |
isCloseFilesystem() |
void |
setCloseFilesystem(boolean doCloseFilesystem) |
void |
setHyperlinksByDefault(boolean hyperlinksByDefault)
Should a call to getText() return hyperlinks inline
with the text?
Default is no
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocSummaryInformation, getMetadataTextExtractor, getRoot, getSummaryInformationclosepublic PublisherTextExtractor(HPBFDocument doc)
public PublisherTextExtractor(DirectoryNode dir) throws java.io.IOException
java.io.IOExceptionpublic PublisherTextExtractor(POIFSFileSystem fs) throws java.io.IOException
java.io.IOExceptionpublic PublisherTextExtractor(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic void setHyperlinksByDefault(boolean hyperlinksByDefault)
public java.lang.String getText()
POITextExtractorgetText in interface POITextExtractorpublic HPBFDocument getDocument()
POIOLE2TextExtractorgetDocument in interface POIOLE2TextExtractorgetDocument in interface POITextExtractorpublic void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem in interface POITextExtractordoCloseFilesystem - true (default), if underlying resources/filesystem should be
closed on POITextExtractor.close()public boolean isCloseFilesystem()
isCloseFilesystem in interface POITextExtractortrue, if resources/filesystem should be closed on POITextExtractor.close()public HPBFDocument getFilesystem()
getFilesystem in interface POITextExtractorCopyright 2022 The Apache Software Foundation or its licensors, as applicable.