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)
ConversionJobWithRequiredTargetFormatUnspecifiedas in interface ConversionJobWithRequiredTargetFormatUnspecifiedformat - The document format of the target document.public final void execute()
throws OfficeException
ConversionJobexecute in interface ConversionJobOfficeException - If the conversion failed.protected abstract void doExecute()
throws OfficeException
OfficeException - If the conversion failed.