From f3ac07e633a8eba14c79b1fedaff7ae6b677b666 Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 13:45:27 +0900 Subject: [PATCH] =?UTF-8?q?throws=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/processor/DocumentProcessor.java | 2 +- .../nem/lacerta/processor/impl/DocumentProcessorImpl.java | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/processor/src/main/java/one/nem/lacerta/processor/DocumentProcessor.java b/processor/src/main/java/one/nem/lacerta/processor/DocumentProcessor.java index b611e6c1..f5e55c5a 100644 --- a/processor/src/main/java/one/nem/lacerta/processor/DocumentProcessor.java +++ b/processor/src/main/java/one/nem/lacerta/processor/DocumentProcessor.java @@ -19,6 +19,6 @@ public interface DocumentProcessor { int getPageCount(); void close(); - void init(); + void init() throws Exception; // TODO-rca: 例外処理 } diff --git a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java index 4056792f..7df5c163 100644 --- a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java +++ b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java @@ -49,7 +49,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{ } @Override - public void init() { + public void init() throws Exception{ logger.debug("init", "called"); // Init Variables this.documentRootPath = this.documentDetail.getPath().getFullPath(); @@ -58,11 +58,6 @@ public class DocumentProcessorImpl implements DocumentProcessor{ this.fileManager = fileManagerFactory.create(this.documentRootPath); //Initialize FileManager logger.debug("init", "fileManager created"); - this.fileManager.autoCreateDir(this.documentRootPath); - - // rawディレクトリInit - this.fileManager.autoCreateDir(DEFAULT_SAVE_DIR); - // xmlファイルの読み込み if (fileManager.isExist("meta.xml")) { logger.debug("init", "meta.xml found");