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 boolean
equals(Object o)
POIDocument
getDocument()
Return the underlying POIDocumentString
getDocumentSummaryInformationText()
POIDocument
getFilesystem()
POITextExtractor
getMetadataTextExtractor()
Prevent recursion!String
getSummaryInformationText()
String
getText()
Retrieves all the text from the document.int
hashCode()
boolean
isCloseFilesystem()
void
setCloseFilesystem(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:POITextExtractor
Retrieves 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:
getText
in interfacePOITextExtractor
- Returns:
- the text of all the properties defined in the document.
-
getMetadataTextExtractor
public POITextExtractor getMetadataTextExtractor()
Prevent recursion!- Specified by:
getMetadataTextExtractor
in interfacePOIOLE2TextExtractor
- Specified by:
getMetadataTextExtractor
in interfacePOITextExtractor
- Returns:
- an instance of POIExtractor that can extract meta-data.
-
getDocument
public POIDocument getDocument()
Description copied from interface:POIOLE2TextExtractor
Return the underlying POIDocument- Specified by:
getDocument
in interfacePOIOLE2TextExtractor
- Specified by:
getDocument
in interfacePOITextExtractor
- Returns:
- the underlying POIDocument
-
setCloseFilesystem
public void setCloseFilesystem(boolean doCloseFilesystem)
- Specified by:
setCloseFilesystem
in interfacePOITextExtractor
- Parameters:
doCloseFilesystem
-true
(default), if underlying resources/filesystem should be closed onPOITextExtractor.close()
-
isCloseFilesystem
public boolean isCloseFilesystem()
- Specified by:
isCloseFilesystem
in interfacePOITextExtractor
- Returns:
true
, if resources/filesystem should be closed onPOITextExtractor.close()
-
getFilesystem
public POIDocument getFilesystem()
- Specified by:
getFilesystem
in interfacePOITextExtractor
- Returns:
- The underlying resources/filesystem
-
-