@Immutable public class LoggingSessionInputBuffer extends Object implements SessionInputBuffer, EofSensor
Constructor and Description |
---|
LoggingSessionInputBuffer(SessionInputBuffer in,
Wire wire) |
LoggingSessionInputBuffer(SessionInputBuffer in,
Wire wire,
String charset)
Create an instance that wraps the specified session input buffer.
|
Modifier and Type | Method and Description |
---|---|
HttpTransportMetrics |
getMetrics() |
boolean |
isDataAvailable(int timeout) |
boolean |
isEof() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
String |
readLine() |
int |
readLine(CharArrayBuffer buffer) |
public LoggingSessionInputBuffer(SessionInputBuffer in, Wire wire, String charset)
in
- The session input buffer.wire
- The wire log to use.charset
- protocol charset, ASCII
if null
public LoggingSessionInputBuffer(SessionInputBuffer in, Wire wire)
public boolean isDataAvailable(int timeout) throws IOException
isDataAvailable
in interface SessionInputBuffer
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in interface SessionInputBuffer
IOException
public int read() throws IOException
read
in interface SessionInputBuffer
IOException
public int read(byte[] b) throws IOException
read
in interface SessionInputBuffer
IOException
public String readLine() throws IOException
readLine
in interface SessionInputBuffer
IOException
public int readLine(CharArrayBuffer buffer) throws IOException
readLine
in interface SessionInputBuffer
IOException
public HttpTransportMetrics getMetrics()
getMetrics
in interface SessionInputBuffer
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.