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