public class TargetFromOutputStreamProvider extends AbstractTargetProvider implements TargetDocumentProvider
| Constructor and Description |
|---|
TargetFromOutputStreamProvider(OutputStream outputStream,
TemporaryFileMaker fileMaker,
boolean closeStream) |
| Modifier and Type | Method and Description |
|---|---|
File |
getFile()
获取文档所在的文件.
|
void |
onComplete(File tempFile)
如果转换成功完成,则调用.
|
void |
onFailure(File tempFile,
Exception exception)
如果转换以异常结束则调用.
|
getFormat, setDocumentFormatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatpublic TargetFromOutputStreamProvider(OutputStream outputStream, TemporaryFileMaker fileMaker, boolean closeStream)
public File getFile()
DocumentProvidergetFile in interface DocumentProvidergetFile in class AbstractDocumentProviderpublic void onComplete(File tempFile)
TargetDocumentProvideronComplete in interface TargetDocumentProvidertempFile - 写入转换结果的文件.public void onFailure(File tempFile, Exception exception)
TargetDocumentProvideronFailure in interface TargetDocumentProvidertempFile - 要将转换结果写入其中的文件.exception - 表示转换失败原因的异常.Copyright © 2019. All rights reserved.