summaryrefslogtreecommitdiff
path: root/utils/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'utils/src/main')
-rw-r--r--utils/src/main/java/at/gv/egiz/dom/DOMUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/src/main/java/at/gv/egiz/dom/DOMUtils.java b/utils/src/main/java/at/gv/egiz/dom/DOMUtils.java
index 347f205c..20f4199f 100644
--- a/utils/src/main/java/at/gv/egiz/dom/DOMUtils.java
+++ b/utils/src/main/java/at/gv/egiz/dom/DOMUtils.java
@@ -101,7 +101,7 @@ public final class DOMUtils {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
Base64OutputStream base64OutputStream = new Base64OutputStream(outputStream);
base64OutputStream.write(bytes);
- base64OutputStream.flush();
+ base64OutputStream.close();
return doc.createTextNode(outputStream.toString("ASCII"));
}
@@ -116,7 +116,7 @@ public final class DOMUtils {
base64OutputStream.write(b, 0, l);
}
- base64OutputStream.flush();
+ base64OutputStream.close();
return doc.createTextNode(outputStream.toString("ASCII"));
}