Package org.apache.poi.hpsf.extractor
Class HPSFPropertiesExtractor
- java.lang.Object
-
- org.apache.poi.extractor.POITextExtractor
-
- org.apache.poi.extractor.POIOLE2TextExtractor
-
- org.apache.poi.hpsf.extractor.HPSFPropertiesExtractor
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class HPSFPropertiesExtractor extends POIOLE2TextExtractor
Extracts all of the HPSF properties, both build in and custom, returning them in textual form.
-
-
Constructor Summary
Constructors Constructor Description HPSFPropertiesExtractor(POIOLE2TextExtractor mainExtractor)HPSFPropertiesExtractor(POIDocument doc)HPSFPropertiesExtractor(POIFSFileSystem fs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDocumentSummaryInformationText()POITextExtractorgetMetadataTextExtractor()Prevent recursion!StringgetSummaryInformationText()StringgetText()Retrieves all the text from the document.inthashCode()static voidmain(String[] args)-
Methods inherited from class org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getDocument, getRoot, getSummaryInformation
-
Methods inherited from class org.apache.poi.extractor.POITextExtractor
close, setFilesystem
-
-
-
-
Constructor Detail
-
HPSFPropertiesExtractor
public HPSFPropertiesExtractor(POIOLE2TextExtractor mainExtractor)
-
HPSFPropertiesExtractor
public HPSFPropertiesExtractor(POIDocument doc)
-
HPSFPropertiesExtractor
public HPSFPropertiesExtractor(POIFSFileSystem fs)
-
-
Method Detail
-
getDocumentSummaryInformationText
public String getDocumentSummaryInformationText()
-
getSummaryInformationText
public String getSummaryInformationText()
-
getText
public 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:
- the text of all the properties defined in the document.
-
getMetadataTextExtractor
public POITextExtractor getMetadataTextExtractor()
Prevent recursion!- Overrides:
getMetadataTextExtractorin classPOIOLE2TextExtractor- Returns:
- an instance of POIExtractor that can extract meta-data.
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-