Mercurial Hosting > luan
diff src/luan/modules/IoLuan.java @ 1499:22e15cf73040
lucene.backup
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 09 May 2020 23:14:13 -0600 |
parents | f04bfbb08721 |
children | e66e3d50b289 |
line wrap: on
line diff
--- a/src/luan/modules/IoLuan.java Fri May 08 18:07:14 2020 -0600 +++ b/src/luan/modules/IoLuan.java Sat May 09 23:14:13 2020 -0600 @@ -171,14 +171,12 @@ public String read_text() throws IOException, LuanException { Reader in = reader(); String s = Utils.readAll(in); - in.close(); return s; } public byte[] read_binary() throws IOException, LuanException { InputStream in = inputStream(); byte[] a = Utils.readAll(in); - in.close(); return a; } @@ -285,7 +283,6 @@ OutputStream out = outputStream(); IoUtils.copyAll(in,out); out.close(); - in.close(); return; } }