mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
close()を廃止, DocumentDetailを取得できるように
This commit is contained in:
parent
eba02abfd4
commit
7e20d8e443
|
@ -2,6 +2,8 @@ package one.nem.lacerta.processor;
|
||||||
|
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
|
|
||||||
|
import one.nem.lacerta.model.document.DocumentDetail;
|
||||||
|
|
||||||
public interface DocumentProcessor {
|
public interface DocumentProcessor {
|
||||||
|
|
||||||
// ページ操作
|
// ページ操作
|
||||||
|
@ -18,7 +20,7 @@ public interface DocumentProcessor {
|
||||||
Bitmap getPageAtIndex(int index);
|
Bitmap getPageAtIndex(int index);
|
||||||
int getPageCount();
|
int getPageCount();
|
||||||
|
|
||||||
void close() throws Exception;
|
DocumentDetail getDocumentDetail();
|
||||||
void init() throws Exception; // TODO-rca: 例外処理
|
void init() throws Exception; // TODO-rca: 例外処理
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,14 +141,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws Exception{
|
public DocumentDetail getDocumentDetail() {
|
||||||
logger.debug("close", "called");
|
return this.documentDetail;
|
||||||
try {
|
|
||||||
this.fileManager.getNewInstance().createFileIfNotExist("meta.xml").saveXml(xmlMetaParser.serialize(xmlMetaModel), "meta.xml");
|
|
||||||
logger.debug("close", "meta.xml saved");
|
|
||||||
} catch (Exception e) {
|
|
||||||
logger.error("close", "meta.xml save failed");
|
|
||||||
logger.trace("close", e.getMessage());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user