public abstract class AbstractConversionJobWithSourceFormatUnspecified extends Object implements ConversionJobWithOptionalSourceFormatUnspecified
| Modifier and Type | Field and Description |
|---|---|
protected DocumentFormatRegistry |
formatRegistry |
protected OfficeManager |
officeManager |
protected AbstractSourceDocumentSpecs |
source |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConversionJobWithSourceFormatUnspecified(@NonNull AbstractSourceDocumentSpecs source,
@NonNull OfficeManager officeManager,
@NonNull DocumentFormatRegistry formatRegistry) |
| Modifier and Type | Method and Description |
|---|---|
@NonNull AbstractConversionJobWithSourceFormatUnspecified |
as(@NonNull DocumentFormat format)
Defines the source document format for the given input document.
|
protected abstract @NonNull AbstractConversionJob |
to(@NonNull AbstractTargetDocumentSpecs target)
Configures the current conversion to write the result using the specified specifications.
|
@NonNull AbstractConversionJob |
to(@NonNull File target)
Configures the current conversion to write the result to the specified target.
|
@NonNull AbstractConversionJob |
to(@NonNull OutputStream target)
Configures the current conversion to write the result to the specified
OutputStream. |
@NonNull AbstractConversionJob |
to(@NonNull 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(@NonNull AbstractSourceDocumentSpecs source, @NonNull OfficeManager officeManager, @NonNull DocumentFormatRegistry formatRegistry)
public @NonNull AbstractConversionJobWithSourceFormatUnspecified as(@NonNull DocumentFormat format)
ConversionJobWithOptionalSourceFormatUnspecifiedas in interface ConversionJobWithOptionalSourceFormatUnspecifiedformat - The document format of the source document.public @NonNull AbstractConversionJob to(@NonNull File target)
ConversionJobWithSourceSpecifiedto in interface ConversionJobWithSourceSpecifiedtarget - 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 @NonNull AbstractConversionJob to(@NonNull OutputStream target)
ConversionJobWithSourceSpecifiedOutputStream.
The stream will be closed after the conversion is written.to in interface ConversionJobWithSourceSpecifiedtarget - The output stream to which the conversion result is written to.public @NonNull AbstractConversionJob to(@NonNull OutputStream target, boolean closeStream)
ConversionJobWithSourceSpecifiedOutputStream.
The stream will be closed after the conversion is written.to in interface ConversionJobWithSourceSpecifiedtarget - 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 @NonNull AbstractConversionJob to(@NonNull AbstractTargetDocumentSpecs target)
target - The target specifications to use for the conversion.Copyright © 2016 - present; JODConverter.org. All rights reserved.