public class AS2SessionInputBuffer extends Object implements org.apache.http.io.SessionInputBuffer, org.apache.http.io.BufferInfo
Constructor and Description |
---|
AS2SessionInputBuffer(org.apache.http.impl.io.HttpTransportMetricsImpl metrics,
int buffersize) |
AS2SessionInputBuffer(org.apache.http.impl.io.HttpTransportMetricsImpl metrics,
int buffersize,
int minChunkLimit,
org.apache.http.config.MessageConstraints constraints) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
bind(InputStream instream) |
int |
capacity() |
int |
fillBuffer() |
CharsetDecoder |
getCharsetDecoder() |
org.apache.http.io.HttpTransportMetrics |
getMetrics() |
boolean |
hasBufferedData() |
boolean |
isBound() |
boolean |
isDataAvailable(int timeout) |
boolean |
isLastLineReadTerminatedByLineFeed() |
int |
length() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
String |
readLine() |
int |
readLine(org.apache.http.util.CharArrayBuffer charbuffer) |
void |
setCharsetDecoder(CharsetDecoder chardecoder) |
public AS2SessionInputBuffer(org.apache.http.impl.io.HttpTransportMetricsImpl metrics, int buffersize, int minChunkLimit, org.apache.http.config.MessageConstraints constraints)
public AS2SessionInputBuffer(org.apache.http.impl.io.HttpTransportMetricsImpl metrics, int buffersize)
public CharsetDecoder getCharsetDecoder()
public void setCharsetDecoder(CharsetDecoder chardecoder)
public void bind(InputStream instream)
public boolean isBound()
public int length()
length
in interface org.apache.http.io.BufferInfo
public int capacity()
capacity
in interface org.apache.http.io.BufferInfo
public int available()
available
in interface org.apache.http.io.BufferInfo
public int fillBuffer() throws IOException
IOException
public boolean hasBufferedData()
public int read(byte[] b, int off, int len) throws IOException
read
in interface org.apache.http.io.SessionInputBuffer
IOException
public int read(byte[] b) throws IOException
read
in interface org.apache.http.io.SessionInputBuffer
IOException
public int read() throws IOException
read
in interface org.apache.http.io.SessionInputBuffer
IOException
public int readLine(org.apache.http.util.CharArrayBuffer charbuffer) throws IOException
readLine
in interface org.apache.http.io.SessionInputBuffer
IOException
public String readLine() throws IOException
readLine
in interface org.apache.http.io.SessionInputBuffer
IOException
public boolean isLastLineReadTerminatedByLineFeed()
public boolean isDataAvailable(int timeout) throws IOException
isDataAvailable
in interface org.apache.http.io.SessionInputBuffer
IOException
public org.apache.http.io.HttpTransportMetrics getMetrics()
getMetrics
in interface org.apache.http.io.SessionInputBuffer
Apache Camel