public class UriFileWrapperAdapter extends Object implements FileWrapperAdapter
| 构造器和说明 |
|---|
UriFileWrapperAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
FileWrapper |
getFileWrapper(Object source,
String name,
String contentType,
Long size)
获取文件包装
|
String |
getName(URLConnection conn,
URL url) |
FileWrapper |
handleSize(FileWrapper fileWrapper)
处理文件 size
|
boolean |
isSupport(Object source)
是否支持
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateFileWrapperpublic boolean isSupport(Object source)
FileWrapperAdapterisSupport 在接口中 FileWrapperAdapterpublic FileWrapper getFileWrapper(Object source, String name, String contentType, Long size) throws IOException
FileWrapperAdaptergetFileWrapper 在接口中 FileWrapperAdapterIOExceptionpublic String getName(URLConnection conn, URL url)
public FileWrapper handleSize(FileWrapper fileWrapper) throws IOException
IOExceptionCopyright © 2023. All rights reserved.