mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
保存処理
This commit is contained in:
parent
fbde892f40
commit
7951bef6e0
|
@ -95,7 +95,17 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
logger.debug("addNewPageToLast", "called");
|
logger.debug("addNewPageToLast", "called");
|
||||||
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
|
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
|
||||||
|
|
||||||
this.fileManager.resolve(DEFAULT_SAVE_DIR).createDirectory();
|
FileManager rawFileManager = fileManager.resolve(DEFAULT_SAVE_DIR).createDirectoryIfNotExist().getCurrentInstance();
|
||||||
|
|
||||||
|
rawFileManager.saveBitmap(bitmap, filename);
|
||||||
|
|
||||||
|
XmlMetaPageModel xmlMetaPageModel = new XmlMetaPageModel();
|
||||||
|
xmlMetaPageModel.setFilename(filename);
|
||||||
|
xmlMetaPageModel.setIndex(xmlMetaModel.getPages().size() + 1);
|
||||||
|
xmlMetaModel.getPages().add(xmlMetaPageModel);
|
||||||
|
|
||||||
|
logger.info("addNewPageToLast", "finished");
|
||||||
|
logger.info("addNewPageToLast", "filename: " + filename + ", index: " + xmlMetaPageModel.getIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user