Class AS2SessionInputBuffer
- java.lang.Object
-
- org.apache.camel.component.as2.api.io.AS2SessionInputBuffer
-
- All Implemented Interfaces:
org.apache.http.io.BufferInfo,org.apache.http.io.SessionInputBuffer
public class AS2SessionInputBuffer extends Object implements org.apache.http.io.SessionInputBuffer, org.apache.http.io.BufferInfo
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidbind(InputStream instream)intcapacity()intfillBuffer()CharsetDecodergetCharsetDecoder()org.apache.http.io.HttpTransportMetricsgetMetrics()booleanhasBufferedData()booleanisBound()booleanisDataAvailable(int timeout)booleanisLastLineReadTerminatedByLineFeed()intlength()intread()intread(byte[] b)intread(byte[] b, int off, int len)StringreadLine()intreadLine(org.apache.http.util.CharArrayBuffer charbuffer)voidsetCharsetDecoder(CharsetDecoder chardecoder)
-
-
-
Constructor Detail
-
AS2SessionInputBuffer
public AS2SessionInputBuffer(org.apache.http.impl.io.HttpTransportMetricsImpl metrics, int buffersize, int minChunkLimit, org.apache.http.config.MessageConstraints constraints)
-
AS2SessionInputBuffer
public AS2SessionInputBuffer(org.apache.http.impl.io.HttpTransportMetricsImpl metrics, int buffersize)
-
-
Method Detail
-
getCharsetDecoder
public CharsetDecoder getCharsetDecoder()
-
setCharsetDecoder
public void setCharsetDecoder(CharsetDecoder chardecoder)
-
bind
public void bind(InputStream instream)
-
isBound
public boolean isBound()
-
length
public int length()
- Specified by:
lengthin interfaceorg.apache.http.io.BufferInfo
-
capacity
public int capacity()
- Specified by:
capacityin interfaceorg.apache.http.io.BufferInfo
-
available
public int available()
- Specified by:
availablein interfaceorg.apache.http.io.BufferInfo
-
fillBuffer
public int fillBuffer() throws IOException- Throws:
IOException
-
hasBufferedData
public boolean hasBufferedData()
-
read
public int read(byte[] b, int off, int len) throws IOException- Specified by:
readin interfaceorg.apache.http.io.SessionInputBuffer- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Specified by:
readin interfaceorg.apache.http.io.SessionInputBuffer- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin interfaceorg.apache.http.io.SessionInputBuffer- Throws:
IOException
-
readLine
public int readLine(org.apache.http.util.CharArrayBuffer charbuffer) throws IOException- Specified by:
readLinein interfaceorg.apache.http.io.SessionInputBuffer- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Specified by:
readLinein interfaceorg.apache.http.io.SessionInputBuffer- Throws:
IOException
-
isLastLineReadTerminatedByLineFeed
public boolean isLastLineReadTerminatedByLineFeed()
-
isDataAvailable
public boolean isDataAvailable(int timeout) throws IOException- Specified by:
isDataAvailablein interfaceorg.apache.http.io.SessionInputBuffer- Throws:
IOException
-
getMetrics
public org.apache.http.io.HttpTransportMetrics getMetrics()
- Specified by:
getMetricsin interfaceorg.apache.http.io.SessionInputBuffer
-
-