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 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)
-
-
-
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:
length
in interfaceorg.apache.http.io.BufferInfo
-
capacity
public int capacity()
- Specified by:
capacity
in interfaceorg.apache.http.io.BufferInfo
-
available
public int available()
- Specified by:
available
in 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:
read
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Specified by:
read
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
read
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
IOException
-
readLine
public int readLine(org.apache.http.util.CharArrayBuffer charbuffer) throws IOException
- Specified by:
readLine
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Specified by:
readLine
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
IOException
-
isLastLineReadTerminatedByLineFeed
public boolean isLastLineReadTerminatedByLineFeed()
-
isDataAvailable
public boolean isDataAvailable(int timeout) throws IOException
- Specified by:
isDataAvailable
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
IOException
-
getMetrics
public org.apache.http.io.HttpTransportMetrics getMetrics()
- Specified by:
getMetrics
in interfaceorg.apache.http.io.SessionInputBuffer
-
-