@Component public class LocationFileStorage extends Object implements UeditorStorage
| 构造器和说明 |
|---|
LocationFileStorage() |
| 限定符和类型 | 方法和说明 |
|---|---|
com.baidu.ueditor.define.State |
listFile(int index)
获取文件列表
|
void |
save(byte[] data,
String rootPath,
String savePath)
持久化文件信息
|
void |
save(File file,
String rootPath,
String path)
持久化文件信息
|
com.baidu.ueditor.define.BaseState |
validFile(String savePath)
检测用于对于path是否拥有写权限
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetAllowFiles, setConfig, setCount, setDir, setRootPathgetAllowFiles, getPath, getState, getStatepublic com.baidu.ueditor.define.BaseState validFile(String savePath)
validFile 在接口中 UeditorStoragesavePath - 保存路径public void save(File file, String rootPath, String path) throws IOException
UeditorStoragesave 在接口中 UeditorStoragefile - 临时文件rootPath - 文件保存根目录path - 文件保存路径(相对于根目录)IOException - 文件处理出错public void save(byte[] data,
String rootPath,
String savePath)
throws IOException
UeditorStoragesave 在接口中 UeditorStoragedata - 文件数据rootPath - 文件保存根目录savePath - 文件保存目录(相对于根目录)IOException - 文件处理出错public com.baidu.ueditor.define.State listFile(int index)
FileManagerlistFile 在接口中 FileManagerindex - 文件索引Copyright © 2020. All rights reserved.