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) { + + } }