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.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionjava.lang.Object getDocument()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.