mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
throws追加
This commit is contained in:
parent
a887446d21
commit
f3ac07e633
|
@ -19,6 +19,6 @@ public interface DocumentProcessor {
|
||||||
int getPageCount();
|
int getPageCount();
|
||||||
|
|
||||||
void close();
|
void close();
|
||||||
void init();
|
void init() throws Exception; // TODO-rca: 例外処理
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init() {
|
public void init() throws Exception{
|
||||||
logger.debug("init", "called");
|
logger.debug("init", "called");
|
||||||
// Init Variables
|
// Init Variables
|
||||||
this.documentRootPath = this.documentDetail.getPath().getFullPath();
|
this.documentRootPath = this.documentDetail.getPath().getFullPath();
|
||||||
|
@ -58,11 +58,6 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
this.fileManager = fileManagerFactory.create(this.documentRootPath); //Initialize FileManager
|
this.fileManager = fileManagerFactory.create(this.documentRootPath); //Initialize FileManager
|
||||||
logger.debug("init", "fileManager created");
|
logger.debug("init", "fileManager created");
|
||||||
|
|
||||||
this.fileManager.autoCreateDir(this.documentRootPath);
|
|
||||||
|
|
||||||
// rawディレクトリInit
|
|
||||||
this.fileManager.autoCreateDir(DEFAULT_SAVE_DIR);
|
|
||||||
|
|
||||||
// xmlファイルの読み込み
|
// xmlファイルの読み込み
|
||||||
if (fileManager.isExist("meta.xml")) {
|
if (fileManager.isExist("meta.xml")) {
|
||||||
logger.debug("init", "meta.xml found");
|
logger.debug("init", "meta.xml found");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user