public class TargetFromFileProvider extends AbstractTargetProvider implements TargetDocumentProvider
| Constructor and Description |
|---|
TargetFromFileProvider(File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(File file)
如果转换成功完成,则调用.
|
void |
onFailure(File file,
Exception exception)
如果转换以异常结束则调用.
|
getFile, getFormat, setDocumentFormatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFile, getFormatpublic TargetFromFileProvider(File file)
public void onComplete(File file)
TargetDocumentProvideronComplete in interface TargetDocumentProviderfile - 写入转换结果的文件.public void onFailure(File file, Exception exception)
TargetDocumentProvideronFailure in interface TargetDocumentProviderfile - 要将转换结果写入其中的文件.exception - 表示转换失败原因的异常.Copyright © 2019. All rights reserved.