org.apache.poi.hpsf.extractor
Class HPSFPropertiesExtractor
- java.lang.Object
-
- org.apache.poi.POITextExtractor
-
- org.apache.poi.hpsf.extractor.HPSFPropertiesExtractor
-
- All Implemented Interfaces:
- java.io.Closeable, java.lang.AutoCloseable
public class HPSFPropertiesExtractor extends POITextExtractor
Extracts all of the HPSF properties, both build in and custom, returning them in textual form.
-
-
Constructor Summary
Constructors Constructor and Description HPSFPropertiesExtractor(NPOIFSFileSystem fs)HPSFPropertiesExtractor(POIDocument doc)HPSFPropertiesExtractor(POIFSFileSystem fs)HPSFPropertiesExtractor(POITextExtractor mainExtractor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()Allows to free resources of the Extractor as soon as it is not needed any more.java.lang.StringgetDocumentSummaryInformationText()POITextExtractorgetMetadataTextExtractor()Prevent recursion!java.lang.StringgetSummaryInformationText()java.lang.StringgetText()Retrieves all the text from the document.static voidmain(java.lang.String[] args)
-
-
-
Constructor Detail
-
HPSFPropertiesExtractor
public HPSFPropertiesExtractor(POITextExtractor mainExtractor)
-
HPSFPropertiesExtractor
public HPSFPropertiesExtractor(POIDocument doc)
-
HPSFPropertiesExtractor
public HPSFPropertiesExtractor(POIFSFileSystem fs)
-
HPSFPropertiesExtractor
public HPSFPropertiesExtractor(NPOIFSFileSystem fs)
-
-
Method Detail
-
getDocumentSummaryInformationText
public java.lang.String getDocumentSummaryInformationText()
-
getSummaryInformationText
public java.lang.String getSummaryInformationText()
-
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:
- the text of all the properties defined in the document.
-
getMetadataTextExtractor
public POITextExtractor getMetadataTextExtractor()
Prevent recursion!- Specified by:
getMetadataTextExtractorin classPOITextExtractor
-
close
public void close() throws java.io.IOExceptionDescription copied from class:POITextExtractorAllows to free resources of the Extractor as soon as it is not needed any more. This may include closing open file handles and freeing memory. The Extractor cannot be used after close has been called.- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacejava.lang.AutoCloseable- Overrides:
closein classPOITextExtractor- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG