This commit is contained in:
r-ca 2024-01-09 12:34:42 +09:00
parent e0a344bb48
commit e20b3f4a35
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -171,14 +171,13 @@ public class FileManagerImpl implements FileManager {
}
// Internal
private void saveXmlInternal(Document document, String fileName) throws IOException {
private void saveXmlInternal(Document document) throws IOException {
try {
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
DOMSource source = new DOMSource(document);
File file = this.path.resolve(fileName).toFile();
StreamResult result = new StreamResult(file);
StreamResult result = new StreamResult(this.path.toFile());
transformer.transform(source, result);
} catch (Exception e) {