Package org.apache.poi.hpbf.extractor
Class PublisherTextExtractor
- java.lang.Object
-
- org.apache.poi.hpbf.extractor.PublisherTextExtractor
-
- All Implemented Interfaces:
Closeable,AutoCloseable,POIOLE2TextExtractor,POITextExtractor
public final class PublisherTextExtractor extends Object implements POIOLE2TextExtractor
Extract text from HPBF Publisher files
-
-
Constructor Summary
Constructors Constructor Description PublisherTextExtractor(InputStream is)PublisherTextExtractor(HPBFDocument doc)PublisherTextExtractor(DirectoryNode dir)PublisherTextExtractor(POIFSFileSystem fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HPBFDocumentgetDocument()HPBFDocumentgetFilesystem()StringgetText()booleanisCloseFilesystem()voidsetCloseFilesystem(boolean doCloseFilesystem)voidsetHyperlinksByDefault(boolean hyperlinksByDefault)Should a call to getText() return hyperlinks inline with the text? Default is no-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getMetadataTextExtractor, getRoot, getSummaryInformation
-
Methods inherited from interface org.apache.poi.extractor.POITextExtractor
close
-
-
-
-
Constructor Detail
-
PublisherTextExtractor
public PublisherTextExtractor(HPBFDocument doc)
-
PublisherTextExtractor
public PublisherTextExtractor(DirectoryNode dir) throws IOException
- Throws:
IOException
-
PublisherTextExtractor
public PublisherTextExtractor(POIFSFileSystem fs) throws IOException
- Throws:
IOException
-
PublisherTextExtractor
public PublisherTextExtractor(InputStream is) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setHyperlinksByDefault
public void setHyperlinksByDefault(boolean hyperlinksByDefault)
Should a call to getText() return hyperlinks inline with the text? Default is no
-
getText
public String getText()
- Specified by:
getTextin interfacePOITextExtractor
-
getDocument
public HPBFDocument getDocument()
- Specified by:
getDocumentin interfacePOIOLE2TextExtractor- Specified by:
getDocumentin interfacePOITextExtractor
-
setCloseFilesystem
public void setCloseFilesystem(boolean doCloseFilesystem)
- Specified by:
setCloseFilesystemin interfacePOITextExtractor
-
isCloseFilesystem
public boolean isCloseFilesystem()
- Specified by:
isCloseFilesystemin interfacePOITextExtractor
-
getFilesystem
public HPBFDocument getFilesystem()
- Specified by:
getFilesystemin interfacePOITextExtractor
-
-