public abstract class AbstractConversionJobWithSourceFormatUnspecified extends java.lang.Object implements ConversionJobWithOptionalSourceFormatUnspecified
Modifier and Type | Field and Description |
---|---|
protected DocumentFormatRegistry |
formatRegistry |
protected OfficeManager |
officeManager |
protected AbstractSourceDocumentSpecs |
source |
Modifier | Constructor and Description |
---|---|
protected |
AbstractConversionJobWithSourceFormatUnspecified(AbstractSourceDocumentSpecs source,
OfficeManager officeManager,
DocumentFormatRegistry formatRegistry) |
Modifier and Type | Method and Description |
---|---|
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)
ConversionJobWithRequiredSourceFormatUnspecified
as
in interface ConversionJobWithRequiredSourceFormatUnspecified
format
- The document format of the source document.public AbstractConversionJob to(java.io.File target)
ConversionJobWithSourceSpecified
to
in interface ConversionJobWithSourceSpecified
target
- 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)
ConversionJobWithSourceSpecified
OutputStream
.
The stream will be closed after the conversion is written.to
in interface ConversionJobWithSourceSpecified
target
- The output stream to which the conversion result is written to.public AbstractConversionJob to(java.io.OutputStream target, boolean closeStream)
ConversionJobWithSourceSpecified
OutputStream
.
The stream will be closed after the conversion is written.to
in interface ConversionJobWithSourceSpecified
target
- 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.