Class AsyncJSONTransport.AbstractReader

    • Method Detail

      • onDataAvailable

        public void onDataAvailable()
                             throws java.io.IOException
        Specified by:
        onDataAvailable in interface javax.servlet.ReadListener
        Throws:
        java.io.IOException
      • append

        protected abstract void append​(byte[] buffer,
                                       int offset,
                                       int length)
      • onAllDataRead

        public void onAllDataRead()
                           throws java.io.IOException
        Specified by:
        onAllDataRead in interface javax.servlet.ReadListener
        Throws:
        java.io.IOException
      • finish

        protected abstract java.lang.String finish()
      • onError

        public void onError​(java.lang.Throwable failure)
        Specified by:
        onError in interface javax.servlet.ReadListener