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
(从 POIFS 节点创建提取器)
|
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
(通过 InputStream 创建提取器)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
identifyEmbeddedResources
public boolean accepts(FileMagic fm)
accepts
in interface
ExtractorProvider
(在接口 ExtractorProvider 中接受)
public POITextExtractor create(java.io.File file, java.lang.String password) throws java.io.IOException
ExtractorProvider
create
in interface
ExtractorProvider
(在接口 ExtractorProvider 中创建)
file
- the file
(文件 - 文件)
password
- the password or
null
if not encrypted
(password - 密码;如果未加密,则为 null)
java.io.IOException
- if file can't be read or parsed
(java.io.IOException - 如果文件无法读取或解析)
public POITextExtractor create(java.io.InputStream inputStream, java.lang.String password) throws java.io.IOException
ExtractorProvider
create
in interface
ExtractorProvider
(在接口 ExtractorProvider 中创建)
inputStream
- the stream
(inputStream - 流)
password
- the password or
null
if not encrypted
(password - 密码;如果未加密,则为 null)
java.io.IOException
- if stream can't be read or parsed
(java.io.IOException - 如果无法读取或解析流)
public POITextExtractor create(DirectoryNode poifsDir, java.lang.String password) throws java.io.IOException
ExtractorProvider
create
in interface
ExtractorProvider
(在接口 ExtractorProvider 中创建)
poifsDir
- the node
(poifsDir - 节点)
password
- the password or
null
if not encrypted
(password - 密码;如果未加密,则为 null)
java.io.IOException
- if node can't be parsed
(java.io.IOException - 如果无法解析节点)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.