From 646627ac49874b8cbe854038904c9c9b4efdf454 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 25 Dec 2023 13:34:04 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E6=97=A6=E3=82=B3=E3=83=A1=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=82=A2=E3=82=A6=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/source/file/FileManager.java | 6 +-- .../source/file/impl/FileManagerImpl.java | 44 +++++++++---------- 2 files changed, 25 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 82b503bc..71be3f04 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 @@ -20,8 +20,8 @@ public interface FileManager { Bitmap loadBitmap(Path path); void removeBitmap(Path path); - void saveFileAtCurrent(File file); - File getFile(Path path); - void removeFile(Path path); +// void saveFileAtCurrent(File file); +// File getFile(Path path); +// void removeFile(Path path); } 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 969ead70..8a1cc1a7 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 @@ -104,27 +104,27 @@ 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 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を返す? +// } +// } }