public class POIXMLPropertiesTextExtractor extends java.lang.Object implements POIXMLTextExtractor
POITextExtractor
for returning the textual
content of the OOXML file properties, eg author
and title.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.
|
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 documentpublic POIXMLPropertiesTextExtractor(POIXMLTextExtractor otherExtractor)
otherExtractor
- the extractor referencing the given filepublic java.lang.String getCorePropertiesText()
public java.lang.String getExtendedPropertiesText()
public java.lang.String getCustomPropertiesText()
public java.lang.String getText()
POITextExtractor
getText
in interface POITextExtractor
public POIXMLPropertiesTextExtractor getMetadataTextExtractor()
POIXMLTextExtractor
getMetadataTextExtractor
in interface POITextExtractor
getMetadataTextExtractor
in interface POIXMLTextExtractor
public POIXMLDocument getDocument()
POIXMLTextExtractor
getDocument
in interface POITextExtractor
getDocument
in interface POIXMLTextExtractor
public void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem
in interface POITextExtractor
doCloseFilesystem
- true
(default), if underlying resources/filesystem should be
closed on POITextExtractor.close()
public boolean isCloseFilesystem()
isCloseFilesystem
in interface POITextExtractor
true
, if resources/filesystem should be closed on POITextExtractor.close()
public POIXMLDocument getFilesystem()
getFilesystem
in interface POITextExtractor
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.