@Test public void testReadBytes() throws Exception { InputStream in = new ByteArrayInputStream(new byte[] { (byte) 0x06, (byte) 0x01, (byte) 0x00, (byte) 0xff }); Decoder decoder = new ColumnDecoder(in); ByteBuffer bytes = decoder.readBytes(null); assertArrayEquals(new byte[]{(byte) 0x01, (byte) 0x00, (byte) 0xff}, bytes.array()); }
@Override public ByteBuffer readBytes(ByteBuffer old) throws IOException { return wrappedDecoder.readBytes(old); }
ColumnDecoder extends Decoder { @Override public ByteBuffer readBytes(ByteBuffer old) throws IOException { return wrappedDecoder.readBytes(old); } }
ColumnDecoder extends Decoder { @Override public ByteBuffer readBytes(ByteBuffer old) throws IOException { return wrappedDecoder.readBytes(old); } ColumnDecoder(InputStream in); }
ColumnDecoder extends Decoder { @Override public ByteBuffer readBytes(ByteBuffer old) throws IOException { return wrappedDecoder.readBytes(old); } ColumnDecoder(InputStream in); @Override void readNull(); @Override boolean readBoolean(); @Override int readInt(); @Override long readLong(); @Override float readFloat(); @Override double readDouble(); @Override Utf8 readString(Utf8 old); @Override String readString(); @Override void skipString(); @Override ByteBuffer readBytes(ByteBuffer old); @Override void skipBytes(); @Override void readFixed(byte[] bytes, int start, int length); @Override void skipFixed(int length); @Override int readEnum(); @Override long readArrayStart(); @Override long arrayNext(); @Override long skipArray(); @Override long readMapStart(); @Override long mapNext(); @Override long skipMap(); @Override int readIndex(); }
ColumnDecoder extends Decoder { @Override public ByteBuffer readBytes(ByteBuffer old) throws IOException { return wrappedDecoder.readBytes(old); } ColumnDecoder(InputStream in); @Override void readNull(); @Override boolean readBoolean(); @Override int readInt(); @Override long readLong(); @Override float readFloat(); @Override double readDouble(); @Override Utf8 readString(Utf8 old); @Override String readString(); @Override void skipString(); @Override ByteBuffer readBytes(ByteBuffer old); @Override void skipBytes(); @Override void readFixed(byte[] bytes, int start, int length); @Override void skipFixed(int length); @Override int readEnum(); @Override long readArrayStart(); @Override long arrayNext(); @Override long skipArray(); @Override long readMapStart(); @Override long mapNext(); @Override long skipMap(); @Override int readIndex();  }