@Override public void readBytes(byte[] dst, int dstIndex, int length) { checkReadableBytes(length); getBytes(0, dst, dstIndex, length); }
@Override public void readBytes(byte[] dst) { readBytes(dst, 0, dst.length); }
@Override public void readBytes(ChannelBuffer dst, int dstIndex, int length) { getBytes(0, dst, dstIndex, length); }
body = buffer.getInputStream(); if (!(max == -1 || body.available() < max)) { body = new ByteArrayInputStream(new byte[0]);
String.valueOf(localFile.length())); currentMessage.setContent(new FileChannelBuffer(localFile)); this.out = null; this.currentMessage = null;
@Override public int readBytes(GatheringByteChannel out, int length) throws IOException { checkReadableBytes(length); int readBytes = getBytes(0, out, length); return readBytes; }
@Override public void readBytes(ChannelBuffer dst) { readBytes(dst, dst.writableBytes()); }
@Override public void readBytes(OutputStream out, int length) throws IOException { checkReadableBytes(length); getBytes(0, out, length); }
@Override public void readBytes(ChannelBuffer dst, int length) { if (length > dst.writableBytes()) { throw new IndexOutOfBoundsException(); } readBytes(dst, dst.writerIndex(), length); dst.writerIndex(dst.writerIndex() + length); }
@Override public void readBytes(ByteBuffer dst) { int length = dst.remaining(); checkReadableBytes(length); getBytes(0, dst); }