@Immutable public class LoggingSessionOutputBuffer extends Object implements SessionOutputBuffer
| Constructor and Description |
|---|
LoggingSessionOutputBuffer(SessionOutputBuffer out,
Wire wire) |
LoggingSessionOutputBuffer(SessionOutputBuffer out,
Wire wire,
String charset)
Create an instance that wraps the specified session output buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
HttpTransportMetrics |
getMetrics() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeLine(CharArrayBuffer buffer) |
void |
writeLine(String s) |
public LoggingSessionOutputBuffer(SessionOutputBuffer out, Wire wire, String charset)
out - The session output buffer.wire - The Wire log to use.charset - protocol charset, ASCII if nullpublic LoggingSessionOutputBuffer(SessionOutputBuffer out, Wire wire)
public void write(byte[] b,
int off,
int len)
throws IOException
write in interface SessionOutputBufferIOExceptionpublic void write(int b)
throws IOException
write in interface SessionOutputBufferIOExceptionpublic void write(byte[] b)
throws IOException
write in interface SessionOutputBufferIOExceptionpublic void flush()
throws IOException
flush in interface SessionOutputBufferIOExceptionpublic void writeLine(CharArrayBuffer buffer) throws IOException
writeLine in interface SessionOutputBufferIOExceptionpublic void writeLine(String s) throws IOException
writeLine in interface SessionOutputBufferIOExceptionpublic HttpTransportMetrics getMetrics()
getMetrics in interface SessionOutputBufferCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.