public interface IFileObject extends FileObject
Modifier and Type | Method and Description |
---|---|
void |
download(File dstFile) |
void |
download(OutputStream out)
下载资源
|
void |
download(String dstFile) |
void |
upload(File sourceFile) |
void |
upload(InputStream in)
上传资源
|
void |
upload(String sourceFile) |
clean, delete, foreach, foreach, getAbsolutePath, getChild, getChildren, getExtName, getFileName, getFileObject, getInputStream, getLastModifiedTime, getOutputStream, getParent, getPath, getSchemaProvider, getSize, getURL, isExist, isFolder, isInPackage, isModified, resetModified, setParent
void upload(InputStream in)
可以是流
- 、文件、文件路径(上传位置不存在时会自动创建)上传资源不存在或获取出错时会抛出运行时异常
- ,上传位置为文件夹时也会抛出运行时异常void upload(String sourceFile)
void upload(File sourceFile)
void download(OutputStream out)
可以是输出到流
- 、文件、文件路径输出资源不存在或获取出错时会抛出运行时异常
- ,下载资源为文件夹时也会抛出运行时异常void download(String dstFile)
void download(File dstFile)
Copyright © 2006–2018 TinyGroup. All rights reserved.