public class SourceDocumentSpecsFromInputStream extends AbstractSourceDocumentSpecs implements SourceDocumentSpecs
| Constructor and Description |
|---|
SourceDocumentSpecsFromInputStream(@NonNull InputStream inputStream,
@NonNull TemporaryFileMaker fileMaker,
boolean closeStream)
Creates specs from the specified stream.
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull File |
getFile()
Gets the file where is located the document.
|
void |
onConsumed(@NonNull File tempFile)
Called when the file was consumed and is no longer required by the converter.
|
getFormat, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormatpublic SourceDocumentSpecsFromInputStream(@NonNull InputStream inputStream, @NonNull TemporaryFileMaker fileMaker, boolean closeStream)
inputStream - The source stream.fileMaker - Temporary file maker.closeStream - If we close the stream on completion.public @NonNull File getFile()
DocumentSpecsgetFile in interface DocumentSpecsgetFile in class AbstractDocumentSpecspublic void onConsumed(@NonNull File tempFile)
SourceDocumentSpecsonConsumed in interface SourceDocumentSpecstempFile - The file that was consumed.Copyright © 2016 - present; JODConverter.org. All rights reserved.