public abstract class AbstractConversionJobWithSourceFormatUnspecified extends java.lang.Object implements ConversionJobWithOptionalSourceFormatUnspecified
| 限定符和类型 | 字段和说明 |
|---|---|
protected DocumentFormatRegistry |
formatRegistry |
protected OfficeManager |
officeManager |
protected AbstractSourceDocumentSpecs |
source |
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractConversionJobWithSourceFormatUnspecified(AbstractSourceDocumentSpecs source,
OfficeManager officeManager,
DocumentFormatRegistry formatRegistry) |
| 限定符和类型 | 方法和说明 |
|---|---|
AbstractConversionJobWithSourceFormatUnspecified |
as(DocumentFormat format)
Defines the source document format for the given input document.
|
protected abstract AbstractConversionJob |
to(AbstractTargetDocumentSpecs target)
Configures the current conversion to write the result using the specified specifications.
|
AbstractConversionJob |
to(java.io.File target)
Configures the current conversion to write the result to the specified target.
|
AbstractConversionJob |
to(java.io.OutputStream target)
Configures the current conversion to write the result to the specified
OutputStream. |
AbstractConversionJob |
to(java.io.OutputStream target,
boolean closeStream)
Configures the current conversion to write the result to the specified
OutputStream. |
protected final AbstractSourceDocumentSpecs source
protected final OfficeManager officeManager
protected final DocumentFormatRegistry formatRegistry
protected AbstractConversionJobWithSourceFormatUnspecified(AbstractSourceDocumentSpecs source, OfficeManager officeManager, DocumentFormatRegistry formatRegistry)
public AbstractConversionJobWithSourceFormatUnspecified as(DocumentFormat format)
as 在接口中 ConversionJobWithRequiredSourceFormatUnspecifiedformat - The document format of the source document.public AbstractConversionJob to(java.io.File target)
ConversionJobWithSourceSpecifiedto 在接口中 ConversionJobWithSourceSpecifiedtarget - The file to which the result of the conversion will be written. Existing files
will be overwritten. If the file is locked by the JVM or any other application or is not
writable, an exception will be thrown.public AbstractConversionJob to(java.io.OutputStream target)
ConversionJobWithSourceSpecifiedOutputStream.
The stream will be closed after the conversion is written.to 在接口中 ConversionJobWithSourceSpecifiedtarget - The output stream to which the conversion result is written to.public AbstractConversionJob to(java.io.OutputStream target, boolean closeStream)
ConversionJobWithSourceSpecifiedOutputStream.
The stream will be closed after the conversion is written.to 在接口中 ConversionJobWithSourceSpecifiedtarget - The output stream to which the conversion result is written to.closeStream - Determines whether the output stream is closed after writing the result.protected abstract AbstractConversionJob to(AbstractTargetDocumentSpecs target)
target - The target specifications to use for the conversion.