示例#1
0
 public byte[] getBytes() {
   int len = getInt();
   if (len < 0 || len > 32768) {
     throw new IllegalStateException("Bad item length: " + len);
   }
   byte[] b = new byte[len];
   getRawBytes(b);
   return b;
 }
示例#2
0
 public void getRawBytes(byte[] buf) {
   getRawBytes(buf, 0, buf.length);
 }