org.apache.poi
Class POIOLE2TextExtractor
- java.lang.Object
-
- org.apache.poi.POITextExtractor
-
- org.apache.poi.POIOLE2TextExtractor
-
- All Implemented Interfaces:
- java.io.Closeable, java.lang.AutoCloseable
- Direct Known Subclasses:
- EventBasedExcelExtractor, ExcelExtractor
public abstract class POIOLE2TextExtractor extends POITextExtractor
Common Parent for OLE2 based Text Extractors of POI Documents, such as .doc, .xls You will typically find the implementation of a given format's text extractor under org.apache.poi.[format].extractor .- See Also:
ExcelExtractor,org.apache.poi.hslf.extractor.PowerPointExtractor,org.apache.poi.hdgf.extractor.VisioTextExtractor,org.apache.poi.hwpf.extractor.WordExtractor
-
-
Constructor Summary
Constructors Constructor and Description POIOLE2TextExtractor(POIDocument document)Creates a new text extractor for the given document
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description DocumentSummaryInformationgetDocSummaryInformation()Returns the document information metadata for the documentPOIFSFileSystemgetFileSystem()Deprecated.UsegetRoot()insteadPOITextExtractorgetMetadataTextExtractor()Returns an HPSF powered text extractor for the document properties metadata, such as title and author.DirectoryEntrygetRoot()Return the underlying DirectoryEntry of this document.SummaryInformationgetSummaryInformation()Returns the summary information metadata for the document.-
Methods inherited from class org.apache.poi.POITextExtractor
close, getText
-
-
-
-
Constructor Detail
-
POIOLE2TextExtractor
public POIOLE2TextExtractor(POIDocument document)
Creates a new text extractor for the given document- Parameters:
document- The POIDocument to use in this extractor.
-
-
Method Detail
-
getDocSummaryInformation
public DocumentSummaryInformation getDocSummaryInformation()
Returns the document information metadata for the document- Returns:
- The Document Summary Information or null if it could not be read for this document.
-
getSummaryInformation
public SummaryInformation getSummaryInformation()
Returns the summary information metadata for the document.- Returns:
- The Summary information for the document or null if it could not be read for this document.
-
getMetadataTextExtractor
public POITextExtractor getMetadataTextExtractor()
Returns an HPSF powered text extractor for the document properties metadata, such as title and author.- Specified by:
getMetadataTextExtractorin classPOITextExtractor- Returns:
- an instance of POIExtractor that can extract meta-data.
-
getRoot
public DirectoryEntry getRoot()
Return the underlying DirectoryEntry of this document.- Returns:
- the DirectoryEntry that is associated with the POIDocument of this extractor.
-
getFileSystem
@Deprecated public POIFSFileSystem getFileSystem()
Deprecated. UsegetRoot()insteadReturn the underlying POIFS FileSystem of this document.- Returns:
- the POIFSFileSystem that is associated with the POIDocument of this extractor.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG