From 73fa8201d62e50c65fe8b9e35f9bf8fde5213caf Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 8 Jan 2024 12:17:16 +0900 Subject: [PATCH] =?UTF-8?q?Document=E3=82=AA=E3=83=96=E3=82=B8=E3=82=A7?= =?UTF-8?q?=E3=82=AF=E3=83=88=E4=BF=9D=E5=AD=98=E3=83=A1=E3=82=BD=E3=83=83?= =?UTF-8?q?=E3=83=89=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index 914cb266..12c9ebe8 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -16,6 +16,7 @@ import java.util.List; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; +import javax.xml.transform.stream.StreamResult; import dagger.assisted.Assisted; import dagger.assisted.AssistedInject; @@ -230,13 +231,16 @@ public class FileManagerImpl implements FileManager { Transformer transformer = transformerFactory.newTransformer(); DOMSource source = new DOMSource(document); File file = createFile(fileName); - + StreamResult result = new StreamResult(file); + transformer.transform(source, result); + } catch (Exception e) { + e.printStackTrace(); } } @Override public void saveDocument(Document document, Path path) { - + // TODO-rca 実装する } @Override