Package org.apache.poi.hpsf.extractor
Class HPSFPropertiesExtractor
java.lang.Object
org.apache.poi.hpsf.extractor.HPSFPropertiesExtractor
- All Implemented Interfaces:
Closeable,AutoCloseable,POIOLE2TextExtractor,POITextExtractor
Extracts all of the HPSF properties, both
build in and custom, returning them in
textual form.
-
Constructor Summary
ConstructorsConstructorDescriptionHPSFPropertiesExtractor(POIOLE2TextExtractor mainExtractor) HPSFPropertiesExtractor(POIDocument document) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the underlying POIDocumentPrevent recursion!getText()Retrieves all the text from the document.inthashCode()booleanvoidsetCloseFilesystem(boolean doCloseFilesystem) Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getRoot, getSummaryInformationMethods inherited from interface org.apache.poi.extractor.POITextExtractor
close
-
Constructor Details
-
HPSFPropertiesExtractor
-
HPSFPropertiesExtractor
-
HPSFPropertiesExtractor
-
-
Method Details
-
getDocumentSummaryInformationText
-
getSummaryInformationText
-
getText
Description copied from interface: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 interfacePOITextExtractor- Returns:
- the text of all the properties defined in the document.
-
getMetadataTextExtractor
Prevent recursion!- Specified by:
getMetadataTextExtractorin interfacePOIOLE2TextExtractor- Specified by:
getMetadataTextExtractorin interfacePOITextExtractor- Returns:
- an instance of POIExtractor that can extract meta-data.
-
equals
-
hashCode
public int hashCode() -
getDocument
Description copied from interface:POIOLE2TextExtractorReturn the underlying POIDocument- Specified by:
getDocumentin interfacePOIOLE2TextExtractor- Specified by:
getDocumentin interfacePOITextExtractor- Returns:
- the underlying POIDocument
-
setCloseFilesystem
public void setCloseFilesystem(boolean doCloseFilesystem) - Specified by:
setCloseFilesystemin interfacePOITextExtractor- Parameters:
doCloseFilesystem-true(default), if underlying resources/filesystem should be closed onPOITextExtractor.close()
-
isCloseFilesystem
public boolean isCloseFilesystem()- Specified by:
isCloseFilesystemin interfacePOITextExtractor- Returns:
true, if resources/filesystem should be closed onPOITextExtractor.close()
-
getFilesystem
- Specified by:
getFilesystemin interfacePOITextExtractor- Returns:
- The underlying resources/filesystem
-