org.apache.poi
Class POIXMLPropertiesTextExtractor
- java.lang.Object
-
- org.apache.poi.POITextExtractor
-
- org.apache.poi.POIXMLTextExtractor
-
- org.apache.poi.POIXMLPropertiesTextExtractor
-
- All Implemented Interfaces:
- java.io.Closeable, java.lang.AutoCloseable
public class POIXMLPropertiesTextExtractor extends POIXMLTextExtractor
APOITextExtractorfor returning the textual content of the OOXML file properties, eg author and title.
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetCorePropertiesText()Returns the core document properties, eg authorjava.lang.StringgetCustomPropertiesText()Returns the custom document properties, if there are anyjava.lang.StringgetExtendedPropertiesText()Returns the extended document properties, eg applicationPOIXMLPropertiesTextExtractorgetMetadataTextExtractor()Returns an OOXML properties text extractor for the document properties metadata, such as title and author.java.lang.StringgetText()Retrieves all the text from the document.-
Methods inherited from class org.apache.poi.POIXMLTextExtractor
close, getCoreProperties, getCustomProperties, getDocument, getExtendedProperties, getPackage
-
-
-
-
Constructor Detail
-
POIXMLPropertiesTextExtractor
public POIXMLPropertiesTextExtractor(POIXMLDocument doc)
Creates a new POIXMLPropertiesTextExtractor for the given open document.
-
POIXMLPropertiesTextExtractor
public POIXMLPropertiesTextExtractor(POIXMLTextExtractor otherExtractor)
Creates a new POIXMLPropertiesTextExtractor, for the same file that another TextExtractor is already working on.
-
-
Method Detail
-
getCorePropertiesText
public java.lang.String getCorePropertiesText()
Returns the core document properties, eg author
-
getExtendedPropertiesText
public java.lang.String getExtendedPropertiesText()
Returns the extended document properties, eg application
-
getCustomPropertiesText
public java.lang.String getCustomPropertiesText()
Returns the custom document properties, if there are any
-
getText
public java.lang.String getText()
Description copied from class:POITextExtractorRetrieves all the text from the document. How cells, paragraphs etc are separated in the text is implementation specific - see the javadocs for a specific project for details.- Specified by:
getTextin classPOITextExtractor- Returns:
- All the text from the document
-
getMetadataTextExtractor
public POIXMLPropertiesTextExtractor getMetadataTextExtractor()
Description copied from class:POIXMLTextExtractorReturns an OOXML properties text extractor for the document properties metadata, such as title and author.- Overrides:
getMetadataTextExtractorin classPOIXMLTextExtractor
-
-
DataMelt 3.0 © DataMelt by jWork.ORG