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

      • setCharsetDecoder

        public void setCharsetDecoder​(CharsetDecoder chardecoder)
      • 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
      • 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()
      • 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