mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
読み書きのインタフェースを実装
This commit is contained in:
parent
0dced5d0dc
commit
91fe39d141
|
@ -21,6 +21,9 @@ public interface FileManager {
|
|||
boolean isReadable();
|
||||
Document readXml();
|
||||
|
||||
// Get current instance
|
||||
FileManager getCurrentInstance();
|
||||
|
||||
// Configure
|
||||
FileManager enableAutoCreateParent();
|
||||
FileManager disableRootDirCheck();
|
||||
|
@ -28,4 +31,24 @@ public interface FileManager {
|
|||
FileManager setRootDir(Path rootDir);
|
||||
FileManager setPath(Path path);
|
||||
FileManager resolve(String path) throws IOException;
|
||||
|
||||
// Save
|
||||
// XML
|
||||
FileManager saveXml(Document document, String fileName) throws IOException;
|
||||
FileManager saveXml(Document document) throws IOException;
|
||||
|
||||
// Bitmap
|
||||
FileManager saveBitmap(Bitmap bitmap, String fileName) throws IOException; // TODO-rca: パラメータに対応させる
|
||||
FileManager saveBitmap(Bitmap bitmap) throws IOException; // TODO-rca: パラメータに対応させる
|
||||
|
||||
|
||||
// Load
|
||||
// XML
|
||||
Document loadXml(String fileName) throws IOException;
|
||||
Document loadXml() throws IOException;
|
||||
|
||||
// Bitmap
|
||||
Bitmap loadBitmap(String fileName) throws IOException;
|
||||
Bitmap loadBitmap() throws IOException;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user