public abstract class AbstractConverter extends java.lang.Object implements DocumentConverter
DocumentConverter
限定符和类型 | 类和说明 |
---|---|
static class |
AbstractConverter.AbstractConverterBuilder<B extends AbstractConverter.AbstractConverterBuilder<B>>
A builder for constructing an
AbstractConverter . |
限定符和类型 | 字段和说明 |
---|---|
protected DocumentFormatRegistry |
formatRegistry |
protected OfficeManager |
officeManager |
限定符 | 构造器和说明 |
---|---|
protected |
AbstractConverter(OfficeManager officeManager,
DocumentFormatRegistry formatRegistry) |
限定符和类型 | 方法和说明 |
---|---|
protected abstract AbstractConversionJobWithSourceFormatUnspecified |
convert(AbstractSourceDocumentSpecs source)
Converts a source document using the given specifications.
|
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. |
protected final OfficeManager officeManager
protected final DocumentFormatRegistry formatRegistry
protected AbstractConverter(OfficeManager officeManager, DocumentFormatRegistry formatRegistry)
public ConversionJobWithOptionalSourceFormatUnspecified convert(java.io.File source)
DocumentConverter
convert
在接口中 DocumentConverter
source
- The conversion input as a file.public ConversionJobWithRequiredSourceFormatUnspecified convert(java.io.InputStream source)
DocumentConverter
convert
在接口中 DocumentConverter
source
- The conversion input as an input stream.public ConversionJobWithRequiredSourceFormatUnspecified convert(java.io.InputStream source, boolean closeStream)
DocumentConverter
convert
在接口中 DocumentConverter
source
- The conversion input as an input stream.closeStream
- Whether the InputStream
is closed after the conversion terminates.protected abstract AbstractConversionJobWithSourceFormatUnspecified convert(AbstractSourceDocumentSpecs source)
source
- The conversion input as a document specifications.public DocumentFormatRegistry getFormatRegistry()
DocumentConverter
DocumentFormat
supported by the converter.getFormatRegistry
在接口中 DocumentConverter
DocumentFormatRegistry
containing the supported formats.