From 7a6eabd80d2c57cb8018eb4eb98fb46b765ec189 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 3 Oct 2012 19:50:49 +0000 Subject: close streams git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1146 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../src/test/java/at/gv/egiz/bku/gui/SecureViewerDialogTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'BKUCommonGUI/src/test/java/at/gv/egiz') diff --git a/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/SecureViewerDialogTest.java b/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/SecureViewerDialogTest.java index 82b5eb01..b40f3165 100644 --- a/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/SecureViewerDialogTest.java +++ b/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/SecureViewerDialogTest.java @@ -83,6 +83,7 @@ public class SecureViewerDialogTest { BufferedInputStream bis = new BufferedInputStream(new FileInputStream("/home/clemens/IAIK/MOCCA/encoding/test_iso-8859-1.txt")); byte[] bytes = new byte[bis.available()]; bis.read(bytes); + bis.close(); String s = new String(bytes, "iso-8859-1"); System.out.println("read iso-8859-1 bytes " + s); -- cgit v1.2.3