diff src/treeVnc/RfbProto.java @ 5:970d5ac80256

add MyDataInputStream.java and DataInputStream1.java
author one
date Mon, 23 Apr 2012 21:10:23 +0900
parents 657c691c2936
children
line wrap: on
line diff
--- a/src/treeVnc/RfbProto.java	Mon Apr 23 20:53:18 2012 +0900
+++ b/src/treeVnc/RfbProto.java	Mon Apr 23 21:10:23 2012 +0900
@@ -137,7 +137,7 @@
 	// only via RfbProto methods. We have to do this because we want to
 	// count how many bytes were read.
 	// private DataInputStream is;
-	protected DataInputStream is;
+	protected MyDataInputStream is;
 	// private long numBytesRead = 0;
 	protected long numBytesRead = 0;
 
@@ -216,7 +216,7 @@
 				throw new IOException(e.getMessage());
 			}
 		}
-		is = new DataInputStream(new BufferedInputStream(sock.getInputStream(),
+		is = new DataInputStream1(new BufferedInputStream(sock.getInputStream(),
 				16384));
 		os = sock.getOutputStream();
 
@@ -231,7 +231,7 @@
 
 		sock = newSocket(host, port);
 
-		is = new DataInputStream(new BufferedInputStream(sock.getInputStream(),
+		is = new DataInputStream1(new BufferedInputStream(sock.getInputStream(),
 				16384));
 		os = sock.getOutputStream();
 
@@ -286,7 +286,7 @@
 		host = h;
 		sock = null;
 		sock = newSocket(host, port);
-		is = new DataInputStream(new BufferedInputStream(sock.getInputStream(),
+		is = new DataInputStream1(new BufferedInputStream(sock.getInputStream(),
 				16384));
 		os = sock.getOutputStream();