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 Details

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

    • 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 interface org.apache.http.io.BufferInfo
    • capacity

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

      public int available()
      Specified by:
      available in interface org.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 interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • read

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

      public int read() throws IOException
      Specified by:
      read in interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • readLine

      public int readLine(org.apache.http.util.CharArrayBuffer charbuffer) throws IOException
      Specified by:
      readLine in interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • readLine

      public String readLine() throws IOException
      Specified by:
      readLine in interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • isLastLineReadTerminatedByLineFeed

      public boolean isLastLineReadTerminatedByLineFeed()
    • isLastLineReadEnrichedByCarriageReturn

      public boolean isLastLineReadEnrichedByCarriageReturn()
    • isDataAvailable

      public boolean isDataAvailable(int timeout) throws IOException
      Specified by:
      isDataAvailable in interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • getMetrics

      public org.apache.http.io.HttpTransportMetrics getMetrics()
      Specified by:
      getMetrics in interface org.apache.http.io.SessionInputBuffer