Top Description Constructors Methods
org.apache.poi.extractor

public Class MainExtractorFactory

extends Object
implements ExtractorProvider
Class Inheritance
All Implemented Interfaces
org.apache.poi.extractor.ExtractorProvider
Static Imports
org.apache.poi.hssf.model.InternalWorkbook.WORKBOOK_DIR_ENTRY_NAMES_CASE_INSENSITIVE

ExtractorFactory for HSSF and Old Excel format

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public POITextExtractor
create(File
the file
file
,
String
the password or null if not encrypted
password
)

Implements org.apache.poi.extractor.ExtractorProvider.create.

Create Extractor via file

public POITextExtractor
create(InputStream
the stream
inputStream
,
String
the password or null if not encrypted
password
)

Implements org.apache.poi.extractor.ExtractorProvider.create.

Create Extractor via InputStream

public POITextExtractor
create(DirectoryNode
the node
poifsDir
,
String
the password or null if not encrypted
password
)

Implements org.apache.poi.extractor.ExtractorProvider.create.

Create Extractor from POIFS node

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MainExtractorFactoryback to summary
public MainExtractorFactory()

Method Detail

acceptsback to summary
public boolean accepts(FileMagic fm)

Implements org.apache.poi.extractor.ExtractorProvider.accepts.

Annotations
@Override
createback to summary
public POITextExtractor create(File file, String password) throws IOException

Implements org.apache.poi.extractor.ExtractorProvider.create.

Doc from org.apache.poi.extractor.ExtractorProvider.create.

Create Extractor via file

Parameters
file:File

the file

password:String

the password or null if not encrypted

Returns:POITextExtractor

the extractor

Annotations
@SuppressWarnings:java:S2095
@Override
Exceptions
IOException:
if file can't be read or parsed
createback to summary
public POITextExtractor create(InputStream inputStream, String password) throws IOException

Implements org.apache.poi.extractor.ExtractorProvider.create.

Doc from org.apache.poi.extractor.ExtractorProvider.create.

Create Extractor via InputStream

Parameters
inputStream:InputStream

the stream

password:String

the password or null if not encrypted

Returns:POITextExtractor

the extractor

Annotations
@Override
Exceptions
IOException:
if stream can't be read or parsed
createback to summary
public POITextExtractor create(DirectoryNode poifsDir, String password) throws IOException

Implements org.apache.poi.extractor.ExtractorProvider.create.

Doc from org.apache.poi.extractor.ExtractorProvider.create.

Create Extractor from POIFS node

Parameters
poifsDir:DirectoryNode

the node

password:String

the password or null if not encrypted

Returns:POITextExtractor

the extractor

Annotations
@SuppressWarnings:java:S2093
@Override
Exceptions
IOException:
if node can't be parsed