public abstract class AbstractConversionJob extends java.lang.Object implements ConversionJobWithOptionalTargetFormatUnspecified
ConversionJob
限定符和类型 | 字段和说明 |
---|---|
protected AbstractSourceDocumentSpecs |
source |
protected AbstractTargetDocumentSpecs |
target |
限定符 | 构造器和说明 |
---|---|
protected |
AbstractConversionJob(AbstractSourceDocumentSpecs source,
AbstractTargetDocumentSpecs target) |
限定符和类型 | 方法和说明 |
---|---|
ConversionJob |
as(DocumentFormat format)
Defines the target document format for the given input document.
|
protected abstract void |
doExecute()
Executes the conversion and blocks until the conversion terminates.
|
void |
execute()
Executes a conversion and blocks until the conversion terminates.
|
protected AbstractSourceDocumentSpecs source
protected AbstractTargetDocumentSpecs target
protected AbstractConversionJob(AbstractSourceDocumentSpecs source, AbstractTargetDocumentSpecs target)
public ConversionJob as(DocumentFormat format)
as
在接口中 ConversionJobWithRequiredTargetFormatUnspecified
format
- The document format of the target document.public final void execute() throws OfficeException
ConversionJob
execute
在接口中 ConversionJob
OfficeException
- If the conversion failed.protected abstract void doExecute() throws OfficeException
OfficeException
- If the conversion failed.