From 91fe39d1418c84a2fddc3206fc5343d97c2a687e Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 12:31:31 +0900 Subject: [PATCH] =?UTF-8?q?=E8=AA=AD=E3=81=BF=E6=9B=B8=E3=81=8D=E3=81=AE?= =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=82=BF=E3=83=95=E3=82=A7=E3=83=BC=E3=82=B9?= =?UTF-8?q?=E3=82=92=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/source/file/FileManager.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java index c6aed97e..aaf78c1c 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java +++ b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java @@ -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; + }