Package org.apache.poi.extractor
Class MainExtractorFactory
java.lang.Object
org.apache.poi.extractor.MainExtractorFactory
- All Implemented Interfaces:
ExtractorProvider
ExtractorFactory for HSSF and Old Excel format
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate Extractor via filecreate(InputStream inputStream, String password) Create Extractor via InputStreamcreate(DirectoryNode poifsDir, String password) Create Extractor from POIFS nodeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.extractor.ExtractorProvider
identifyEmbeddedResources
-
Constructor Details
-
MainExtractorFactory
public MainExtractorFactory()
-
-
Method Details
-
accepts
- Specified by:
acceptsin interfaceExtractorProvider
-
create
Description copied from interface:ExtractorProviderCreate Extractor via file- Specified by:
createin interfaceExtractorProvider- Parameters:
file- the filepassword- the password ornullif not encrypted- Returns:
- the extractor
- Throws:
IOException- if file can't be read or parsed
-
create
Description copied from interface:ExtractorProviderCreate Extractor via InputStream- Specified by:
createin interfaceExtractorProvider- Parameters:
inputStream- the streampassword- the password ornullif not encrypted- Returns:
- the extractor
- Throws:
IOException- if stream can't be read or parsed
-
create
Description copied from interface:ExtractorProviderCreate Extractor from POIFS node- Specified by:
createin interfaceExtractorProvider- Parameters:
poifsDir- the nodepassword- the password ornullif not encrypted- Returns:
- the extractor
- Throws:
IOException- if node can't be parsed
-