@Override public int read(final byte[] b) throws IOException { if (b == null) { return 0; } return this.buffer.read(b, 0, b.length); }
int bytesRead = inBuf.consumeContent(decoder);
buffer.consumeContent(decoder); if (decoder.isCompleted()) {
@Override public int read(final byte[] b, final int off, final int len) throws IOException { return this.buffer.read(b, off, len); }
int bytesRead = inBuf.consumeContent(decoder);
@Override public int read(final byte[] b) throws IOException { if (b == null) { return 0; } return this.buffer.read(b, 0, b.length); }
@Override public int read() throws IOException { return this.buffer.read(); }
@Override public int read(final byte[] b, final int off, final int len) throws IOException { return this.buffer.read(b, off, len); }
@Override public int read() throws IOException { return this.buffer.read(); }
@Override public void close() throws IOException { // read and discard the remainder of the message final byte tmp[] = new byte[1024]; while (this.buffer.read(tmp, 0, tmp.length) >= 0) { } super.close(); }
@Override public void close() throws IOException { // read and discard the remainder of the message final byte tmp[] = new byte[1024]; while (this.buffer.read(tmp, 0, tmp.length) >= 0) { } super.close(); }