public class POIXMLPropertiesTextExtractor extends 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 |
|---|---|
String |
getCorePropertiesText()
Returns the core document properties, eg author
|
String |
getCustomPropertiesText()
Returns the custom document properties, if there are any
|
POIXMLDocument |
getDocument()
Returns opened document
|
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.
|
String |
getText() |
boolean |
isCloseFilesystem() |
void |
setCloseFilesystem(boolean doCloseFilesystem) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckMaxTextSize, close, getCoreProperties, getCustomProperties, getExtendedProperties, getPackagepublic POIXMLPropertiesTextExtractor(POIXMLDocument doc)
doc - the given open documentpublic POIXMLPropertiesTextExtractor(POIXMLTextExtractor otherExtractor)
otherExtractor - the extractor referencing the given filepublic String getCorePropertiesText()
public String getExtendedPropertiesText()
public String getCustomPropertiesText()
public String getText()
getText in interface POITextExtractorpublic POIXMLPropertiesTextExtractor getMetadataTextExtractor()
POIXMLTextExtractorgetMetadataTextExtractor in interface POITextExtractorgetMetadataTextExtractor in interface POIXMLTextExtractorpublic POIXMLDocument getDocument()
POIXMLTextExtractorgetDocument in interface POITextExtractorgetDocument in interface POIXMLTextExtractorpublic void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem in interface POITextExtractorpublic boolean isCloseFilesystem()
isCloseFilesystem in interface POITextExtractorpublic POIXMLDocument getFilesystem()
getFilesystem in interface POITextExtractor