public class FileSystemRepository extends Object implements StorageRepository
| Constructor and Description |
|---|
FileSystemRepository(File aRepositoryPath)
コンストラクタ。レポジトリとして使用するディレクトリを指定する。
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearStorages()
リポジトリ内容を消去する。
|
void |
delete()
リポジトリ自体を削除する。
|
FileStorage |
getStorage(String name)
ストレージを取得する。返されたストレージが既に存在するとは限らない。
|
Iterable<Storage> |
listStorages()
リポジトリ内のストレージ一覧を返す。
|
public FileSystemRepository(File aRepositoryPath) throws IOException
aRepositoryPath - レポジトリとして使用するディレクトリIOException - レポジトリの構築に失敗したpublic Iterable<Storage> listStorages()
listStorages in interface StorageRepositorypublic FileStorage getStorage(String name)
getStorage in interface StorageRepositoryname - 取得するストレージの名前public void clearStorages()
throws IOException
clearStorages in interface StorageRepositoryIOException - リポジトリ内容の消去に失敗したpublic void delete()
throws IOException
delete in interface StorageRepositoryIOException - リポジトリの削除に失敗した