public interface DocumentConverter
Modifier and Type | Method and Description |
---|---|
ConversionJobWithOptionalSourceFormatUnspecified |
convert(java.io.File source)
Converts a source file that is stored on the local file system.
|
ConversionJobWithRequiredSourceFormatUnspecified |
convert(java.io.InputStream source)
Converts a source stream input stream.
|
ConversionJobWithRequiredSourceFormatUnspecified |
convert(java.io.InputStream source,
boolean closeStream)
Converts a source stream input stream.
|
DocumentFormatRegistry |
getFormatRegistry()
Gets all the
DocumentFormat supported by the converter. |
ConversionJobWithOptionalSourceFormatUnspecified convert(java.io.File source)
source
- The conversion input as a file.ConversionJobWithRequiredSourceFormatUnspecified convert(java.io.InputStream source)
source
- The conversion input as an input stream.ConversionJobWithRequiredSourceFormatUnspecified convert(java.io.InputStream source, boolean closeStream)
source
- The conversion input as an input stream.closeStream
- Whether the InputStream
is closed after the conversion terminates.DocumentFormatRegistry getFormatRegistry()
DocumentFormat
supported by the converter.DocumentFormatRegistry
containing the supported formats.