@Ignored public interface IUploadFileWrapper extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
delete()
删除文件
|
String |
getContentType()
获取文件Content-Type
|
File |
getFile()
获取临时文件对象
|
InputStream |
getInputStream()
获取文件输入流对象
|
String |
getName()
获取文件名称
|
OutputStream |
getOutputStream()
获取文件输出流对象
|
String |
getPath()
获取完整的文件名及路径
|
long |
getSize()
获取文件大小
|
void |
transferTo(File dest)
转移文件
|
void |
writeTo(File dest)
保存文件
|
close
String getPath()
String getName()
long getSize()
File getFile() throws Exception
Exception
- 可能产生的异常String getContentType()
void transferTo(File dest) throws Exception
dest
- 目标Exception
- 可能产生的异常void writeTo(File dest) throws Exception
dest
- 目标Exception
- 可能产生的异常void delete()
InputStream getInputStream() throws IOException
IOException
- 可能产生的异常OutputStream getOutputStream() throws IOException
IOException
- 可能产生的异常Copyright © 2022. All rights reserved.