public interface POITextExtractor
extends java.io.Closeable
ExcelExtractor
,
VisioTextExtractor
,
WordExtractor
Modifier and Type | Method and Description |
---|---|
default void |
close()
Allows to free resources of the Extractor as soon as
it is not needed any more.
|
java.lang.Object |
getDocument() |
java.io.Closeable |
getFilesystem() |
POITextExtractor |
getMetadataTextExtractor()
Returns another text extractor, which is able to
output the textual content of the document
metadata / properties, such as author and title.
|
java.lang.String |
getText()
Retrieves all the text from the document.
|
boolean |
isCloseFilesystem() |
void |
setCloseFilesystem(boolean doCloseFilesystem) |
java.lang.String getText()
POITextExtractor getMetadataTextExtractor()
void setCloseFilesystem(boolean doCloseFilesystem)
doCloseFilesystem
- true
(default), if underlying resources/filesystem should be
closed on close()
boolean isCloseFilesystem()
true
, if resources/filesystem should be closed on close()
java.io.Closeable getFilesystem()
default void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException
java.lang.Object getDocument()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.