Mercurial Hosting > luan
diff src/luan/modules/IoLuan.java @ 1493:471ef3e6a84e
more io
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 03 May 2020 00:12:15 -0600 |
parents | c7b86342857f |
children | f04bfbb08721 |
line wrap: on
line diff
--- a/src/luan/modules/IoLuan.java Sat May 02 22:25:56 2020 -0600 +++ b/src/luan/modules/IoLuan.java Sun May 03 00:12:15 2020 -0600 @@ -273,7 +273,7 @@ if( obj instanceof byte[] ) { byte[] a = (byte[])obj; OutputStream out = outputStream(); - Utils.copyAll(new ByteArrayInputStream(a),out); + out.write(a); out.close(); return; } @@ -284,7 +284,7 @@ LuanIn luanIn = (LuanIn)java; InputStream in = luanIn.inputStream(); OutputStream out = outputStream(); - Utils.copyAll(in,out); + IoUtils.copyAll(in,out); out.close(); in.close(); return;