Package org.apache.http.impl.conn
Class LoggingSessionOutputBuffer
- java.lang.Object
-
- org.apache.http.impl.conn.LoggingSessionOutputBuffer
-
- All Implemented Interfaces:
SessionOutputBuffer
@Contract(threading=IMMUTABLE) @Deprecated public class LoggingSessionOutputBuffer extends java.lang.Object implements SessionOutputBuffer
Deprecated.(4.3) no longer used.Logs all data written to the wire LOG.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description LoggingSessionOutputBuffer(SessionOutputBuffer out, Wire wire)
Deprecated.LoggingSessionOutputBuffer(SessionOutputBuffer out, Wire wire, java.lang.String charset)
Deprecated.Create an instance that wraps the specified session output buffer.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
flush()
Deprecated.Flushes this session buffer and forces any buffered output bytes to be written out.HttpTransportMetrics
getMetrics()
Deprecated.ReturnsHttpTransportMetrics
for this session buffer.void
write(byte[] b)
Deprecated.Writesb.length
bytes from the specified byte array to this session buffer.void
write(byte[] b, int off, int len)
Deprecated.Writeslen
bytes from the specified byte array starting at offsetoff
to this session buffer.void
write(int b)
Deprecated.Writes the specified byte to this session buffer.void
writeLine(java.lang.String s)
Deprecated.Writes characters from the specified string followed by a line delimiter to this session buffer.void
writeLine(CharArrayBuffer buffer)
Deprecated.Writes characters from the specified char array followed by a line delimiter to this session buffer.
-
-
-
Constructor Detail
-
LoggingSessionOutputBuffer
public LoggingSessionOutputBuffer(SessionOutputBuffer out, Wire wire, java.lang.String charset)
Deprecated.Create an instance that wraps the specified session output buffer.- Parameters:
out
- The session output buffer.wire
- The Wire log to use.charset
- protocol charset,ASCII
ifnull
-
LoggingSessionOutputBuffer
public LoggingSessionOutputBuffer(SessionOutputBuffer out, Wire wire)
Deprecated.
-
-
Method Detail
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException
Deprecated.Description copied from interface:SessionOutputBuffer
Writeslen
bytes from the specified byte array starting at offsetoff
to this session buffer.If
off
is negative, orlen
is negative, oroff+len
is greater than the length of the arrayb
, then anIndexOutOfBoundsException
is thrown.- Specified by:
write
in interfaceSessionOutputBuffer
- Parameters:
b
- the data.off
- the start offset in the data.len
- the number of bytes to write.- Throws:
java.io.IOException
- if an I/O error occurs.
-
write
public void write(int b) throws java.io.IOException
Deprecated.Description copied from interface:SessionOutputBuffer
Writes the specified byte to this session buffer.- Specified by:
write
in interfaceSessionOutputBuffer
- Parameters:
b
- thebyte
.- Throws:
java.io.IOException
- if an I/O error occurs.
-
write
public void write(byte[] b) throws java.io.IOException
Deprecated.Description copied from interface:SessionOutputBuffer
Writesb.length
bytes from the specified byte array to this session buffer.- Specified by:
write
in interfaceSessionOutputBuffer
- Parameters:
b
- the data.- Throws:
java.io.IOException
- if an I/O error occurs.
-
flush
public void flush() throws java.io.IOException
Deprecated.Description copied from interface:SessionOutputBuffer
Flushes this session buffer and forces any buffered output bytes to be written out. The general contract offlush
is that calling it is an indication that, if any bytes previously written have been buffered by the implementation of the output stream, such bytes should immediately be written to their intended destination.- Specified by:
flush
in interfaceSessionOutputBuffer
- Throws:
java.io.IOException
- if an I/O error occurs.
-
writeLine
public void writeLine(CharArrayBuffer buffer) throws java.io.IOException
Deprecated.Description copied from interface:SessionOutputBuffer
Writes characters from the specified char array followed by a line delimiter to this session buffer.The choice of a char encoding and line delimiter sequence is up to the specific implementations of this interface.
- Specified by:
writeLine
in interfaceSessionOutputBuffer
- Parameters:
buffer
- the buffer containing chars of the line.- Throws:
java.io.IOException
- if an I/O error occurs.
-
writeLine
public void writeLine(java.lang.String s) throws java.io.IOException
Deprecated.Description copied from interface:SessionOutputBuffer
Writes characters from the specified string followed by a line delimiter to this session buffer.The choice of a char encoding and line delimiter sequence is up to the specific implementations of this interface.
- Specified by:
writeLine
in interfaceSessionOutputBuffer
- Parameters:
s
- the line.- Throws:
java.io.IOException
- if an I/O error occurs.
-
getMetrics
public HttpTransportMetrics getMetrics()
Deprecated.Description copied from interface:SessionOutputBuffer
ReturnsHttpTransportMetrics
for this session buffer.- Specified by:
getMetrics
in interfaceSessionOutputBuffer
- Returns:
- transport metrics.
-
-