originalOutputStream.write(buf, off, len);
writeToListener(ByteBuffer.wrap(buf, off, len));
}
private void writeToListener(ByteBuffer byteBuffer) {
CharBuffer charBuffer = byteToCharConverter.convert(byteBuffer);
listener.addContent(charBuffer);
}
};
return new LoggableOutputStream() {
@Override public OutputStream getOutputStream() {