public int readBytes(final GatheringByteChannel out, final int length) throws IOException { int readBytes = getBytes((int) readerIndex, out, length); readerIndex += readBytes; return readBytes; }
@Override public void readBytes(final byte[] dst, final int dstIndex, final int length) { getBytes(readerIndex, dst, dstIndex, length); readerIndex += length; }
@Override public void readBytes(final ActiveMQBuffer dst, final int dstIndex, final int length) { getBytes(readerIndex, dst, dstIndex, length); readerIndex += length; }
public void readBytes(final OutputStream out, final int length) throws IOException { getBytes(readerIndex, out, length); readerIndex += length; }
@Override public void readBytes(final ByteBuffer dst) { int length = dst.remaining(); getBytes(readerIndex, dst); readerIndex += length; }
public void getBytes(final long index, final OutputStream out, final int length) throws IOException { byte[] bytesToGet = new byte[length]; getBytes(index, bytesToGet); out.write(bytesToGet); }
@Override public void getBytes(final int index, final byte[] dst, final int dstIndex, final int length) { byte[] bytesToGet = new byte[length]; getBytes(index, bytesToGet); System.arraycopy(bytesToGet, 0, dst, dstIndex, length); }
public void getBytes(final long index, final byte[] dst, final int dstIndex, final int length) { byte[] bytesToGet = new byte[length]; getBytes(index, bytesToGet); System.arraycopy(bytesToGet, 0, dst, dstIndex, length); }
public void getBytes(final int index, final OutputStream out, final int length) throws IOException { byte[] bytesToGet = new byte[length]; getBytes(index, bytesToGet); out.write(bytesToGet); }
@Override public void getBytes(final int index, final ByteBuffer dst) { byte[] bytesToGet = new byte[dst.remaining()]; getBytes(index, bytesToGet); dst.put(bytesToGet); }
public void getBytes(final long index, final ByteBuffer dst) { byte[] bytesToGet = new byte[dst.remaining()]; getBytes(index, bytesToGet); dst.put(bytesToGet); }
private void getBytes(final long index, final ActiveMQBuffer dst, final int dstIndex, final int length) { byte[] destBytes = new byte[length]; getBytes(index, destBytes); dst.setBytes(dstIndex, destBytes); }
@Override public void getBytes(final int index, final ActiveMQBuffer dst, final int dstIndex, final int length) { byte[] destBytes = new byte[length]; getBytes(index, destBytes); dst.setBytes(dstIndex, destBytes); }
@Override public ActiveMQBuffer readBytes(final int length) { byte[] bytesToGet = new byte[length]; getBytes(readerIndex, bytesToGet); readerIndex += length; return ActiveMQBuffers.wrappedBuffer(bytesToGet); }
public int getBytes(final int index, final GatheringByteChannel out, final int length) throws IOException { byte[] bytesToGet = new byte[length]; getBytes(index, bytesToGet); return out.write(ByteBuffer.wrap(bytesToGet)); }
@Override public void getBytes(final int index, final ActiveMQBuffer dst) { getBytes(index, dst, dst.writableBytes()); }
@Override public void getBytes(final int index, final ActiveMQBuffer dst, final int length) { if (length > dst.writableBytes()) { throw new IndexOutOfBoundsException(); } getBytes(index, dst, dst.writerIndex(), length); dst.writerIndex(dst.writerIndex() + length); }
public void getBytes(final long index, final OutputStream out, final int length) throws IOException { byte[] bytesToGet = new byte[length]; getBytes(index, bytesToGet); out.write(bytesToGet); }
public int getBytes(final int index, final GatheringByteChannel out, final int length) throws IOException { byte[] bytesToGet = new byte[length]; getBytes(index, bytesToGet); return out.write(ByteBuffer.wrap(bytesToGet)); }
@Override public ActiveMQBuffer readBytes(final int length) { byte[] bytesToGet = new byte[length]; getBytes(readerIndex, bytesToGet); readerIndex += length; return ActiveMQBuffers.wrappedBuffer(bytesToGet); }