Package org.apache.poi.ooxml.extractor
Interface POIXMLTextExtractor
-
- All Superinterfaces:
AutoCloseable
,Closeable
,POITextExtractor
- All Known Implementing Classes:
POIXMLPropertiesTextExtractor
,XDGFVisioExtractor
,XSLFExtractor
,XSSFBEventBasedExcelExtractor
,XSSFEventBasedExcelExtractor
,XSSFExcelExtractor
,XWPFWordExtractor
public interface POIXMLTextExtractor extends POITextExtractor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
checkMaxTextSize(CharSequence text, String string)
default void
close()
default POIXMLProperties.CoreProperties
getCoreProperties()
Returns the core document propertiesdefault POIXMLProperties.CustomProperties
getCustomProperties()
Returns the custom document propertiesPOIXMLDocument
getDocument()
Returns opened documentdefault POIXMLProperties.ExtendedProperties
getExtendedProperties()
Returns the extended document propertiesdefault POIXMLPropertiesTextExtractor
getMetadataTextExtractor()
Returns an OOXML properties text extractor for the document properties metadata, such as title and author.default OPCPackage
getPackage()
Returns the opened OPCPackage that contains the document-
Methods inherited from interface org.apache.poi.extractor.POITextExtractor
getFilesystem, getText, isCloseFilesystem, setCloseFilesystem
-
-
-
-
Method Detail
-
getCoreProperties
default POIXMLProperties.CoreProperties getCoreProperties()
Returns the core document properties- Returns:
- the core document properties
-
getExtendedProperties
default POIXMLProperties.ExtendedProperties getExtendedProperties()
Returns the extended document properties- Returns:
- the extended document properties
-
getCustomProperties
default POIXMLProperties.CustomProperties getCustomProperties()
Returns the custom document properties- Returns:
- the custom document properties
-
getDocument
POIXMLDocument getDocument()
Returns opened document- Specified by:
getDocument
in interfacePOITextExtractor
- Returns:
- the opened document
-
getPackage
default OPCPackage getPackage()
Returns the opened OPCPackage that contains the document- Returns:
- the opened OPCPackage
-
getMetadataTextExtractor
default POIXMLPropertiesTextExtractor getMetadataTextExtractor()
Returns an OOXML properties text extractor for the document properties metadata, such as title and author.- Specified by:
getMetadataTextExtractor
in interfacePOITextExtractor
-
close
default void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacePOITextExtractor
- Throws:
IOException
-
checkMaxTextSize
default void checkMaxTextSize(CharSequence text, String string)
-
-