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 Object
implements SessionOutputBuffer
Deprecated.
(4.3) no longer used.
Logs all data written to the wire LOG.
- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionLoggingSessionOutputBuffer
(SessionOutputBuffer out, Wire wire) Deprecated.LoggingSessionOutputBuffer
(SessionOutputBuffer out, Wire wire, String charset) Deprecated.Create an instance that wraps the specified session output buffer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
Deprecated.Flushes this session buffer and forces any buffered output bytes to be written out.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
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 Details
-
LoggingSessionOutputBuffer
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
Deprecated.
-
-
Method Details
-
write
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:
IOException
- if an I/O error occurs.
-
write
Deprecated.Description copied from interface:SessionOutputBuffer
Writes the specified byte to this session buffer.- Specified by:
write
in interfaceSessionOutputBuffer
- Parameters:
b
- thebyte
.- Throws:
IOException
- if an I/O error occurs.
-
write
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:
IOException
- if an I/O error occurs.
-
flush
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:
IOException
- if an I/O error occurs.
-
writeLine
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:
IOException
- if an I/O error occurs.
-
writeLine
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:
IOException
- if an I/O error occurs.
-
getMetrics
Deprecated.Description copied from interface:SessionOutputBuffer
ReturnsHttpTransportMetrics
for this session buffer.- Specified by:
getMetrics
in interfaceSessionOutputBuffer
- Returns:
- transport metrics.
-