Package org.apache.poi.hpsf.extractor
Class HPSFPropertiesExtractor
- java.lang.Object
-
- org.apache.poi.hpsf.extractor.HPSFPropertiesExtractor
-
- All Implemented Interfaces:
Closeable,AutoCloseable,POIOLE2TextExtractor,POITextExtractor
public class HPSFPropertiesExtractor extends Object implements 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 document)HPSFPropertiesExtractor(POIFSFileSystem fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)POIDocumentgetDocument()Return the underlying POIDocumentStringgetDocumentSummaryInformationText()POIDocumentgetFilesystem()POITextExtractorgetMetadataTextExtractor()Prevent recursion!StringgetSummaryInformationText()StringgetText()Retrieves all the text from the document.inthashCode()booleanisCloseFilesystem()voidsetCloseFilesystem(boolean doCloseFilesystem)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getRoot, getSummaryInformation
-
Methods inherited from interface org.apache.poi.extractor.POITextExtractor
close
-
-
-
-
Constructor Detail
-
HPSFPropertiesExtractor
public HPSFPropertiesExtractor(POIOLE2TextExtractor mainExtractor)
-
HPSFPropertiesExtractor
public HPSFPropertiesExtractor(POIDocument document)
-
HPSFPropertiesExtractor
public HPSFPropertiesExtractor(POIFSFileSystem fs)
-
-
Method Detail
-
getDocumentSummaryInformationText
public String getDocumentSummaryInformationText()
-
getSummaryInformationText
public String getSummaryInformationText()
-
getText
public String 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
public POITextExtractor getMetadataTextExtractor()
Prevent recursion!- Specified by:
getMetadataTextExtractorin interfacePOIOLE2TextExtractor- Specified by:
getMetadataTextExtractorin interfacePOITextExtractor- Returns:
- an instance of POIExtractor that can extract meta-data.
-
getDocument
public POIDocument 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
public POIDocument getFilesystem()
- Specified by:
getFilesystemin interfacePOITextExtractor- Returns:
- The underlying resources/filesystem
-
-