Class AS2SessionInputBuffer
java.lang.Object
org.apache.camel.component.as2.api.io.AS2SessionInputBuffer
- All Implemented Interfaces:
org.apache.hc.core5.http.io.SessionInputBuffer
public class AS2SessionInputBuffer
extends Object
implements org.apache.hc.core5.http.io.SessionInputBuffer
-
Constructor Summary
ConstructorsConstructorDescriptionAS2SessionInputBuffer(org.apache.hc.core5.http.impl.BasicHttpTransportMetrics metrics, int buffersize) AS2SessionInputBuffer(org.apache.hc.core5.http.impl.BasicHttpTransportMetrics metrics, int buffersize, int minChunkLimit) -
Method Summary
Modifier and TypeMethodDescriptionintintcapacity()intfillBuffer(InputStream inputStream) org.apache.hc.core5.http.io.HttpTransportMetricsbooleanbooleanbooleanintlength()intread(byte[] b, int off, int len, InputStream inputStream) intread(byte[] b, InputStream inputStream) intread(InputStream inputStream) intreadLine(org.apache.hc.core5.util.CharArrayBuffer charbuffer, InputStream inputStream) voidsetCharsetDecoder(CharsetDecoder chardecoder)
-
Constructor Details
-
AS2SessionInputBuffer
public AS2SessionInputBuffer(org.apache.hc.core5.http.impl.BasicHttpTransportMetrics metrics, int buffersize, int minChunkLimit) -
AS2SessionInputBuffer
public AS2SessionInputBuffer(org.apache.hc.core5.http.impl.BasicHttpTransportMetrics metrics, int buffersize)
-
-
Method Details
-
getCharsetDecoder
-
setCharsetDecoder
-
length
public int length()- Specified by:
lengthin interfaceorg.apache.hc.core5.http.io.SessionInputBuffer
-
capacity
public int capacity()- Specified by:
capacityin interfaceorg.apache.hc.core5.http.io.SessionInputBuffer
-
available
public int available()- Specified by:
availablein interfaceorg.apache.hc.core5.http.io.SessionInputBuffer
-
fillBuffer
- Throws:
IOException
-
hasBufferedData
public boolean hasBufferedData() -
read
- Specified by:
readin interfaceorg.apache.hc.core5.http.io.SessionInputBuffer- Throws:
IOException
-
read
- Specified by:
readin interfaceorg.apache.hc.core5.http.io.SessionInputBuffer- Throws:
IOException
-
read
- Specified by:
readin interfaceorg.apache.hc.core5.http.io.SessionInputBuffer- Throws:
IOException
-
readLine
public int readLine(org.apache.hc.core5.util.CharArrayBuffer charbuffer, InputStream inputStream) throws IOException - Specified by:
readLinein interfaceorg.apache.hc.core5.http.io.SessionInputBuffer- Throws:
IOException
-
isLastLineReadTerminatedByLineFeed
public boolean isLastLineReadTerminatedByLineFeed() -
isLastLineReadEnrichedByCarriageReturn
public boolean isLastLineReadEnrichedByCarriageReturn() -
getMetrics
public org.apache.hc.core5.http.io.HttpTransportMetrics getMetrics()- Specified by:
getMetricsin interfaceorg.apache.hc.core5.http.io.SessionInputBuffer
-