public class MainExtractorFactory extends Object implements ExtractorProvider
| Constructor and Description |
|---|
MainExtractorFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(FileMagic fm) |
POITextExtractor |
create(DirectoryNode poifsDir,
String password)
Create Extractor from POIFS node
|
POITextExtractor |
create(File file,
String password)
Create Extractor via file
|
POITextExtractor |
create(InputStream inputStream,
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(File file, String password) throws IOException
ExtractorProvidercreate in interface ExtractorProviderfile - the filepassword - the password or null if not encryptedIOException - if file can't be read or parsedpublic POITextExtractor create(InputStream inputStream, String password) throws IOException
ExtractorProvidercreate in interface ExtractorProviderinputStream - the streampassword - the password or null if not encryptedIOException - if stream can't be read or parsedpublic POITextExtractor create(DirectoryNode poifsDir, String password) throws IOException
ExtractorProvidercreate in interface ExtractorProviderpoifsDir - the nodepassword - the password or null if not encryptedIOException - if node can't be parsed