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; }
public void getRawBytes(byte[] buf) { getRawBytes(buf, 0, buf.length); }