public class POIXMLPropertiesTextExtractor extends java.lang.Object implements POIXMLTextExtractor
POITextExtractor
for returning the textual content of the OOXML file properties, eg author and title.
(用于返回 OOXML 文件属性的文本内容的 POITextExtractor,例如作者和标题。)
Constructor and Description |
---|
POIXMLPropertiesTextExtractor(POIXMLDocument doc)
Creates a new POIXMLPropertiesTextExtractor for the given open document.
|
POIXMLPropertiesTextExtractor(POIXMLTextExtractor otherExtractor)
Creates a new POIXMLPropertiesTextExtractor, for the same file that another TextExtractor is already working on.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCorePropertiesText()
Returns the core document properties, eg author
(返回核心文档属性,例如作者)
|
java.lang.String |
getCustomPropertiesText()
Returns the custom document properties, if there are any
(返回自定义文档属性(如果有))
|
POIXMLDocument |
getDocument()
Returns opened document
(返回打开的文档)
|
java.lang.String |
getExtendedPropertiesText()
Returns the extended document properties, eg application
(返回扩展的文档属性,例如应用程序)
|
POIXMLDocument |
getFilesystem() |
POIXMLPropertiesTextExtractor |
getMetadataTextExtractor()
Returns an OOXML properties text extractor for the document properties metadata, such as title and author.
(返回文档属性元数据的 OOXML 属性文本提取器,例如标题和作者。)
|
java.lang.String |
getText()
Retrieves all the text from the document.
(从文档中检索所有文本。)
|
boolean |
isCloseFilesystem() |
void |
setCloseFilesystem(boolean doCloseFilesystem) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkMaxTextSize, close, getCoreProperties, getCustomProperties, getExtendedProperties, getPackage
public POIXMLPropertiesTextExtractor(POIXMLDocument doc)
doc
- the given open document
(doc - 给定的打开文档)
public POIXMLPropertiesTextExtractor(POIXMLTextExtractor otherExtractor)
otherExtractor
- the extractor referencing the given file
(otherExtractor - 引用给定文件的提取器)
public java.lang.String getCorePropertiesText()
public java.lang.String getExtendedPropertiesText()
public java.lang.String getCustomPropertiesText()
public java.lang.String getText()
POITextExtractor
getText
in interface
POITextExtractor
(接口 POITextExtractor 中的 getText)
public POIXMLPropertiesTextExtractor getMetadataTextExtractor()
POIXMLTextExtractor
getMetadataTextExtractor
in interface
POITextExtractor
(接口 POITextExtractor 中的 getMetadataTextExtractor)
getMetadataTextExtractor
in interface
POIXMLTextExtractor
(接口 POIXMLTextExtractor 中的 getMetadataTextExtractor)
public POIXMLDocument getDocument()
POIXMLTextExtractor
getDocument
in interface
POITextExtractor
(接口 POITextExtractor 中的 getDocument)
getDocument
in interface
POIXMLTextExtractor
(接口 POIXMLTextExtractor 中的 getDocument)
public void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem
in interface
POITextExtractor
(接口 POITextExtractor 中的 setCloseFilesystem)
doCloseFilesystem
-
true
(default), if underlying resources/filesystem should be closed on
POITextExtractor.close()
(doCloseFilesystem - true(默认),如果底层资源/文件系统应该在 POITextExtractor.close() 上关闭)
public boolean isCloseFilesystem()
isCloseFilesystem
in interface
POITextExtractor
(接口 POITextExtractor 中的 isCloseFilesystem)
true
, if resources/filesystem should be closed on
POITextExtractor.close()
(true,如果资源/文件系统应该在 POITextExtractor.close() 上关闭)
public POIXMLDocument getFilesystem()
getFilesystem
in interface
POITextExtractor
(接口 POITextExtractor 中的 getFilesystem)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.