diff core/src/luan/modules/IoLuan.java @ 281:a1fa4fba99de

change PickleCon to allow any size string git-svn-id: https://luan-java.googlecode.com/svn/trunk@282 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 26 Nov 2014 04:14:52 +0000
parents 8ac3eaf8ecd9
children b669cdaf54b7
line wrap: on
line diff
--- a/core/src/luan/modules/IoLuan.java	Mon Nov 24 22:22:01 2014 +0000
+++ b/core/src/luan/modules/IoLuan.java	Wed Nov 26 04:14:52 2014 +0000
@@ -589,14 +589,14 @@
 		}
 
 		public LuanTable Pickle_client(LuanState luan) throws IOException {
-			DataInputStream in = new DataInputStream(new BufferedInputStream(inputStream()));
-			DataOutputStream out = new DataOutputStream(new BufferedOutputStream(outputStream()));
+			InputStream in = new BufferedInputStream(inputStream());
+			OutputStream out = new BufferedOutputStream(outputStream());
 			return new PickleClient(luan,in,out).table();
 		}
 
 		public void run_pickle_server(LuanState luan) throws IOException {
-			DataInputStream in = new DataInputStream(new BufferedInputStream(inputStream()));
-			DataOutputStream out = new DataOutputStream(new BufferedOutputStream(outputStream()));
+			InputStream in = new BufferedInputStream(inputStream());
+			OutputStream out = new BufferedOutputStream(outputStream());
 			new PickleServer(luan,in,out).run();
 		}