throws追加

This commit is contained in:
r-ca 2024-01-09 13:45:27 +09:00
parent a887446d21
commit f3ac07e633
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 2 additions and 7 deletions

View File

@ -19,6 +19,6 @@ public interface DocumentProcessor {
int getPageCount();
void close();
void init();
void init() throws Exception; // TODO-rca: 例外処理
}

View File

@ -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");