public class MainExtractorFactory extends java.lang.Object implements ExtractorProvider
Constructor and Description |
---|
MainExtractorFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(FileMagic fm) |
POITextExtractor |
create(DirectoryNode poifsDir,
java.lang.String password)
Create Extractor from POIFS node
|
POITextExtractor |
create(java.io.File file,
java.lang.String password)
Create Extractor via file
|
POITextExtractor |
create(java.io.InputStream inputStream,
java.lang.String password)
Create Extractor via InputStream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
identifyEmbeddedResources
public boolean accepts(FileMagic fm)
accepts
in interface ExtractorProvider
public POITextExtractor create(java.io.File file, java.lang.String password) throws java.io.IOException
ExtractorProvider
create
in interface ExtractorProvider
file
- the filepassword
- the password or null
if not encryptedjava.io.IOException
- if file can't be read or parsedpublic POITextExtractor create(java.io.InputStream inputStream, java.lang.String password) throws java.io.IOException
ExtractorProvider
create
in interface ExtractorProvider
inputStream
- the streampassword
- the password or null
if not encryptedjava.io.IOException
- if stream can't be read or parsedpublic POITextExtractor create(DirectoryNode poifsDir, java.lang.String password) throws java.io.IOException
ExtractorProvider
create
in interface ExtractorProvider
poifsDir
- the nodepassword
- the password or null
if not encryptedjava.io.IOException
- if node can't be parsedCopyright 2021 The Apache Software Foundation or its licensors, as applicable.