public class TimeStampSimpleFileStore extends AbstractSimpleFileStore
DEFAULT_STORE_NAME| 构造器和说明 |
|---|
TimeStampSimpleFileStore(File rootPath) |
TimeStampSimpleFileStore(String strRootPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
generateKey()
使用时间戳作为文件Key,精确到秒,后面添加四位数的计数
(non-Javadoc)
|
protected String |
getRelativePathByKey(String key)
基于时间创建三级相对目录结构,层级为年(4位数字)/月(2位数字)/日(2位数字)
|
deleteFile, exist, getFile, getFileAsStream, getFileSize, putFile, putFileAsStream, searchFullText, searchFullTextWithExcerpt, setLoginAccount, supportFullTextSearchcheckName, putFile, putFile, putFileAsStream, putFileAsStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitputFile, putFile, putFileAsStream, putFileAsStreampublic TimeStampSimpleFileStore(File rootPath)
public TimeStampSimpleFileStore(String strRootPath)
protected String getRelativePathByKey(String key) throws FileStoreException
key - 文件KeyFileStoreExceptionAbstractSimpleFileStore.getRelativePathByKey(java.lang.String)protected String generateKey()
Copyright © 2018. All rights reserved.