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()
(doCloseFilesystem - true(默认),如果底层资源/文件系统应该在 close() 时关闭)
boolean isCloseFilesystem()
true
, if resources/filesystem should be closed on
close()
(true,如果资源/文件系统应该在 close() 上关闭)
java.io.Closeable getFilesystem()
default void close() throws java.io.IOException
close
in interface
java.lang.AutoCloseable
(在接口 java.lang.AutoCloseable 中关闭)
close
in interface
java.io.Closeable
(在接口 java.io.Closeable 中关闭)
java.io.IOException
(java.io.IOException)
java.lang.Object getDocument()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.