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, waitidentifyEmbeddedResourcespublic boolean accepts(FileMagic fm)
accepts in interface ExtractorProviderpublic POITextExtractor create(java.io.File file, java.lang.String password) throws java.io.IOException
ExtractorProvidercreate in interface ExtractorProviderfile - 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
ExtractorProvidercreate in interface ExtractorProviderinputStream - 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
ExtractorProvidercreate in interface ExtractorProviderpoifsDir - the nodepassword - the password or null if not encryptedjava.io.IOException - if node can't be parsedCopyright 2022 The Apache Software Foundation or its licensors, as applicable.