Package org.apache.poi.extractor
Class MainExtractorFactory
- java.lang.Object
-
- org.apache.poi.extractor.MainExtractorFactory
-
- All Implemented Interfaces:
ExtractorProvider
public class MainExtractorFactory extends Object implements ExtractorProvider
ExtractorFactory for HSSF and Old Excel format
-
-
Constructor Summary
Constructors Constructor Description MainExtractorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(FileMagic fm)
POITextExtractor
create(File file, String password)
Create Extractor via filePOITextExtractor
create(InputStream inputStream, String password)
Create Extractor via InputStreamPOITextExtractor
create(DirectoryNode poifsDir, String password)
Create Extractor from POIFS node-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.extractor.ExtractorProvider
identifyEmbeddedResources
-
-
-
-
Method Detail
-
accepts
public boolean accepts(FileMagic fm)
- Specified by:
accepts
in interfaceExtractorProvider
-
create
public POITextExtractor create(File file, String password) throws IOException
Description copied from interface:ExtractorProvider
Create Extractor via file- Specified by:
create
in interfaceExtractorProvider
- Parameters:
file
- the filepassword
- the password ornull
if not encrypted- Returns:
- the extractor
- Throws:
IOException
- if file can't be read or parsed
-
create
public POITextExtractor create(InputStream inputStream, String password) throws IOException
Description copied from interface:ExtractorProvider
Create Extractor via InputStream- Specified by:
create
in interfaceExtractorProvider
- Parameters:
inputStream
- the streampassword
- the password ornull
if not encrypted- Returns:
- the extractor
- Throws:
IOException
- if stream can't be read or parsed
-
create
public POITextExtractor create(DirectoryNode poifsDir, String password) throws IOException
Description copied from interface:ExtractorProvider
Create Extractor from POIFS node- Specified by:
create
in interfaceExtractorProvider
- Parameters:
poifsDir
- the nodepassword
- the password ornull
if not encrypted- Returns:
- the extractor
- Throws:
IOException
- if node can't be parsed
-
-