diff src/main/java/com/glavsoft/transport/Reader.java @ 9:1a30763734cf

temp commit
author Taninari YU <you@cr.ie.u-ryukyu.ac.jp>
date Tue, 14 Aug 2012 17:14:48 +0900
parents e7ce2b2ffed8
children 5d43194fdc51
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/transport/Reader.java	Mon Aug 13 09:09:36 2012 +0900
+++ b/src/main/java/com/glavsoft/transport/Reader.java	Tue Aug 14 17:14:48 2012 +0900
@@ -128,5 +128,8 @@
 			throw new TransportException("Cannot read " + length + " bytes array", e);
 		}
 	}
-	
+	public byte[] readBytes(byte[]b) throws TransportException {
+		byte[] result = readBytes(b,0,b.length);
+		return result;
+	}
 }
\ No newline at end of file