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 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

      public CharsetDecoder getCharsetDecoder()
    • setCharsetDecoder

      public void setCharsetDecoder(CharsetDecoder chardecoder)
    • length

      public int length()
      Specified by:
      length in interface org.apache.hc.core5.http.io.SessionInputBuffer
    • capacity

      public int capacity()
      Specified by:
      capacity in interface org.apache.hc.core5.http.io.SessionInputBuffer
    • available

      public int available()
      Specified by:
      available in interface org.apache.hc.core5.http.io.SessionInputBuffer
    • fillBuffer

      public int fillBuffer(InputStream inputStream) throws IOException
      Throws:
      IOException
    • hasBufferedData

      public boolean hasBufferedData()
    • read

      public int read(byte[] b, int off, int len, InputStream inputStream) throws IOException
      Specified by:
      read in interface org.apache.hc.core5.http.io.SessionInputBuffer
      Throws:
      IOException
    • read

      public int read(byte[] b, InputStream inputStream) throws IOException
      Specified by:
      read in interface org.apache.hc.core5.http.io.SessionInputBuffer
      Throws:
      IOException
    • read

      public int read(InputStream inputStream) throws IOException
      Specified by:
      read in interface org.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:
      readLine in interface org.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:
      getMetrics in interface org.apache.hc.core5.http.io.SessionInputBuffer