public abstract class AbstractConversionJob extends java.lang.Object implements ConversionJobWithOptionalTargetFormatUnspecified
ConversionJob
Modifier and Type | Field and Description |
---|---|
protected AbstractSourceDocumentSpecs |
source |
protected AbstractTargetDocumentSpecs |
target |
Modifier | Constructor and Description |
---|---|
protected |
AbstractConversionJob(AbstractSourceDocumentSpecs source,
AbstractTargetDocumentSpecs target) |
Modifier and Type | Method and Description |
---|---|
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)
ConversionJobWithRequiredTargetFormatUnspecified
as
in interface ConversionJobWithRequiredTargetFormatUnspecified
format
- The document format of the target document.public final void execute() throws OfficeException
ConversionJob
execute
in interface ConversionJob
OfficeException
- If the conversion failed.protected abstract void doExecute() throws OfficeException
OfficeException
- If the conversion failed.