Class AsyncJSONTransport.AbstractReader

    • Method Summary

      Modifier and Type Method Description
      protected abstract void append​(byte[] buffer, int offset, int length)  
      protected abstract java.lang.String finish()  
      void onAllDataRead()  
      void onDataAvailable()  
      void onError​(java.lang.Throwable failure)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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