From 3a035bf8004acf36fa1e32a2345854eb11200bcc Mon Sep 17 00:00:00 2001 From: Omar Sweidan Date: Tue, 7 Jun 2022 15:55:34 +0200 Subject: [PATCH] =?utf8?q?Hib=C3=A1s=20fv.n=C3=A9v=20jav=C3=ADt=C3=A1sa?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../src/user/jobengine/server/steps/shared/EscortFiles.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/shared/EscortFiles.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/shared/EscortFiles.java index 673cc5e6..bc673f95 100644 --- a/server/user.jobengine.executors/src/user/jobengine/server/steps/shared/EscortFiles.java +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/shared/EscortFiles.java @@ -156,7 +156,7 @@ public class EscortFiles { root.appendChild(xmlDocument.createElement(RECORDTIMESTAMP)).appendChild(xmlDocument.createTextNode(df.format(recorded))); xmlDocument.appendChild(root); - return xmDocumentToString(xmlDocument); + return xmlDocumentToString(xmlDocument); } public static byte[] createNEXIOKillDateFile(String fileName, Date killDate, String description, String agency) throws Exception { @@ -178,7 +178,7 @@ public class EscortFiles { root.appendChild(xmlDocument.createElement(EXTENDEDAGENCY)).appendChild(xmlDocument.createTextNode(agency)); xmlDocument.appendChild(root); - return xmDocumentToString(xmlDocument); + return xmlDocumentToString(xmlDocument); } public static Document createNEXIOMeta(byte[] content) throws Exception { @@ -359,7 +359,7 @@ public class EscortFiles { } } - private static byte[] xmDocumentToString(Document xmlDocument) + private static byte[] xmlDocumentToString(Document xmlDocument) throws TransformerFactoryConfigurationError, TransformerConfigurationException, TransformerException, IOException, UnsupportedEncodingException { DOMSource domSource = new DOMSource(xmlDocument); TransformerFactory tf = TransformerFactory.newInstance(); -- 2.54.0