public class LocationFileStorage extends Object implements UeditorUpload
| 构造器和说明 |
|---|
LocationFileStorage() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getPath(String filePath)
将文件路径转换为URL访问路径
|
com.baidu.ueditor.define.MultiState |
getState(Object[] files)
获得状态集合
|
com.baidu.ueditor.define.State |
listFile(int index)
获取文件列表
|
void |
save(byte[] data,
String rootPath,
String savePath)
持久化文件信息
|
void |
save(File file,
String rootPath,
String path)
持久化文件信息
|
void |
setConfig(Map<String,Object> conf)
设置配置对象
|
com.baidu.ueditor.define.BaseState |
validFile(String savePath)
检测用于对于path是否拥有写权限
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllowFilespublic com.baidu.ueditor.define.BaseState validFile(String savePath)
validFile 在接口中 UeditorUploadsavePath - 保存路径public void save(File file, String rootPath, String path) throws IOException
UeditorUploadsave 在接口中 UeditorUploadfile - 临时文件rootPath - 文件保存根目录path - 文件保存路径(相对于根目录)IOException - 文件处理出错public void save(byte[] data,
String rootPath,
String savePath)
throws IOException
UeditorUploadsave 在接口中 UeditorUploaddata - 文件数据rootPath - 文件保存根目录savePath - 文件保存目录(相对于根目录)IOException - 文件处理出错public com.baidu.ueditor.define.State listFile(int index)
FileManagerlistFile 在接口中 FileManagerindex - 文件索引public com.baidu.ueditor.define.MultiState getState(Object[] files)
FileManagergetState 在接口中 FileManagerfiles - 文件列表public String getPath(String filePath)
FileManagergetPath 在接口中 FileManagerfilePath - 文件绝对路径Copyright © 2019. All rights reserved.