ファイル/ディレクトリを作成するメソッドを定義

This commit is contained in:
r-ca 2024-01-09 12:49:51 +09:00
parent 3a270cdc9f
commit 7cdb005ebb
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -30,6 +30,12 @@ public interface FileManager {
FileManager setPath(Path path); FileManager setPath(Path path);
FileManager resolve(String path) throws IOException; FileManager resolve(String path) throws IOException;
// Create
FileManager createFile() throws IOException;
FileManager createFile(String fileName) throws IOException;
FileManager createDirectory() throws IOException;
FileManager createDirectory(String directoryName) throws IOException;
// Save // Save
// XML // XML
void saveXml(Document document, String fileName) throws IOException; void saveXml(Document document, String fileName) throws IOException;