public abstract class AbstractConversionJob extends Object implements ConversionJobWithOptionalTargetFormatUnspecified
ConversionJob| Modifier and Type | Field and Description |
|---|---|
protected AbstractSourceDocumentSpecs |
source |
protected AbstractTargetDocumentSpecs |
target |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConversionJob(@NonNull AbstractSourceDocumentSpecs source,
@NonNull AbstractTargetDocumentSpecs target) |
| Modifier and Type | Method and Description |
|---|---|
@NonNull AbstractConversionJob |
as(@NonNull 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 final AbstractSourceDocumentSpecs source
protected final AbstractTargetDocumentSpecs target
protected AbstractConversionJob(@NonNull AbstractSourceDocumentSpecs source, @NonNull AbstractTargetDocumentSpecs target)
public @NonNull AbstractConversionJob as(@NonNull 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.Copyright © 2016 - present; JODConverter.org. All rights reserved.