* Read a single byte off the wire. Nothing interesting here.
*/
public byte readByte() throws TException {
- trans_.read(byteRawBuf, 0, 1);
+ trans_.readAll(byteRawBuf, 0, 1);
return byteRawBuf[0];
}
*/
public double readDouble() throws TException {
byte[] longBits = new byte[8];
- trans_.read(longBits, 0, 8);
+ trans_.readAll(longBits, 0, 8);
return Double.longBitsToDouble(bytesToLong(longBits));
}
if (length == 0) return new byte[0];
byte[] buf = new byte[length];
- trans_.read(buf, 0, length);
+ trans_.readAll(buf, 0, length);
return buf;
}