summaryrefslogtreecommitdiff
path: root/utils/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-10-03 19:50:49 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-10-03 19:50:49 +0000
commit7a6eabd80d2c57cb8018eb4eb98fb46b765ec189 (patch)
tree8c59da2bcdfc542fce56692d9772eb0d7e4f4e8c /utils/src/main/java/at/gv/egiz
parent48aa94dcefe6f94628b548b631ac602dcfceb169 (diff)
downloadmocca-7a6eabd80d2c57cb8018eb4eb98fb46b765ec189.tar.gz
mocca-7a6eabd80d2c57cb8018eb4eb98fb46b765ec189.tar.bz2
mocca-7a6eabd80d2c57cb8018eb4eb98fb46b765ec189.zip
close streams
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1146 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'utils/src/main/java/at/gv/egiz')
-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"));
}