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, wait
getDocSummaryInformation, getMetadataTextExtractor, getRoot, getSummaryInformation
close
public PublisherTextExtractor(HPBFDocument doc)
public PublisherTextExtractor(DirectoryNode dir) throws java.io.IOException
java.io.IOException
public PublisherTextExtractor(POIFSFileSystem fs) throws java.io.IOException
java.io.IOException
public PublisherTextExtractor(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void setHyperlinksByDefault(boolean hyperlinksByDefault)
public java.lang.String getText()
POITextExtractor
getText
in interface POITextExtractor
public HPBFDocument getDocument()
POIOLE2TextExtractor
getDocument
in interface POIOLE2TextExtractor
getDocument
in interface POITextExtractor
public void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem
in interface POITextExtractor
doCloseFilesystem
- true
(default), if underlying resources/filesystem should be
closed on POITextExtractor.close()
public boolean isCloseFilesystem()
isCloseFilesystem
in interface POITextExtractor
true
, if resources/filesystem should be closed on POITextExtractor.close()
public HPBFDocument getFilesystem()
getFilesystem
in interface POITextExtractor
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.