From 4aefae6b51dac373b2547aca18fdc2db18dd3069 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 25 Dec 2023 15:07:00 +0900 Subject: [PATCH] =?UTF-8?q?XML=E3=83=A1=E3=82=BF=E3=83=87=E3=83=BC?= =?UTF-8?q?=E3=82=BF=E3=82=92=E8=AA=AD=E3=81=BF=E5=8F=96=E3=82=8B=E3=83=A1?= =?UTF-8?q?=E3=82=BD=E3=83=83=E3=83=89=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/source/file/FileManager.java | 7 ++-- .../source/file/impl/FileManagerImpl.java | 32 ++++++------------- 2 files changed, 14 insertions(+), 25 deletions(-) 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 71be3f04..e491a870 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 @@ -6,6 +6,8 @@ import java.io.File; import java.nio.file.Path; import java.util.List; +import one.nem.lacerta.source.file.model.XmlMetaModel; + public interface FileManager { Path getRootDir(); @@ -20,8 +22,7 @@ public interface FileManager { Bitmap loadBitmap(Path path); void removeBitmap(Path path); -// void saveFileAtCurrent(File file); -// File getFile(Path path); -// void removeFile(Path path); + XmlMetaModel getXmlMeta(); + void saveXmlMeta(XmlMetaModel xmlMeta); } diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index 8a1cc1a7..8ead1b65 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -16,6 +16,7 @@ import javax.inject.Inject; import dagger.assisted.Assisted; import dagger.assisted.AssistedInject; import one.nem.lacerta.source.file.FileManager; +import one.nem.lacerta.source.file.model.XmlMetaModel; public class FileManagerImpl implements FileManager { @@ -104,27 +105,14 @@ public class FileManagerImpl implements FileManager { } -// @Override -// public void saveFileAtCurrent(File file) { -// try { -// Files.copy(file.toPath(), currentDir.resolve(file.getName())); -// } catch (IOException e) { -// e.printStackTrace(); -// } -// } -// -// @Override -// public File getFile(Path path) { -// // ファイルを取得する -// return path.toFile(); -// } -// -// @Override -// public void removeFile(Path path) { -// // ファイルを削除する -// if (path.toFile().exists()) { -// path.toFile().delete(); // Resultを返す? -// } -// } + @Override + public XmlMetaModel getXmlMeta() { + return null; + } + + @Override + public void saveXmlMeta(XmlMetaModel xmlMeta) { + + } }