public interface IConverter
shutDown() method must be called when a converter is not longer used. After a converter
is shut down, it cannot be reused but needs to be recreated.| Modifier and Type | Field and Description |
|---|---|
static int |
JOB_PRIORITY_HIGH
A conversion of high priority.
|
static int |
JOB_PRIORITY_LOW
A conversion of low priority.
|
static int |
JOB_PRIORITY_NORMAL
A conversion of normal priority.
|
| Modifier and Type | Method and Description |
|---|---|
IConversionJobWithSourceUnspecified |
convert(File source)
Converts a source file that is stored on the local file system.
|
IConversionJobWithSourceUnspecified |
convert(IFileSource source)
Invokes a callback for the dynamic generation of a file source which is additionally informed
about the consumption of a source.
|
IConversionJobWithSourceUnspecified |
convert(IInputStreamSource source)
Invokes a callback for the dynamic generation of a input stream source which is additionally
informed about the consumption of this source.
|
IConversionJobWithSourceUnspecified |
convert(InputStream source)
Converts a source that is represented as a
InputStream. |
IConversionJobWithSourceUnspecified |
convert(InputStream source,
boolean close)
Converts a source that is represented as a
InputStream. |
Map<DocumentType,Set<DocumentType>> |
getSupportedConversions()
Returns a mapping of all conversions that are supported by the backing conversion engine.
|
boolean |
isOperational()
Checks if this converter is currently operational, i.e. it can convert documents and is not shut down.
|
void |
kill()
Shuts down this converter immediately.
|
void |
shutDown()
Shuts down this converter gracefully.
|
static final int JOB_PRIORITY_LOW
static final int JOB_PRIORITY_NORMAL
static final int JOB_PRIORITY_HIGH
IConversionJobWithSourceUnspecified convert(InputStream source)
InputStream. The input stream will
be closed after the conversion is complete.source - The conversion input as an input stream.IConversionJobWithSourceUnspecified convert(InputStream source, boolean close)
InputStream.source - The conversion input as an input stream.close - Whether the InputStream is closed after the conversion terminates.IConversionJobWithSourceUnspecified convert(IInputStreamSource source)
source - The input stream source generator.IConversionJobWithSourceUnspecified convert(File source)
source - The conversion input as a file.IConversionJobWithSourceUnspecified convert(IFileSource source)
source - The file source generator.Map<DocumentType,Set<DocumentType>> getSupportedConversions()
boolean isOperational()
true if the converter is operational.void shutDown()
void kill()
Copyright © 2013–2016. All rights reserved.