Class ByteArrayAsyncInputStream

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Promise<java.lang.Integer> read​(byte[] buffer, int offset, int count)  
      void readFully​(java.util.function.Supplier<Promise<?>> command)  
      Promise<java.lang.Integer> skip​(int amount)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteArrayAsyncInputStream

        public ByteArrayAsyncInputStream​(byte[] data)
    • Method Detail

      • read

        public Promise<java.lang.Integer> read​(byte[] buffer,
                                               int offset,
                                               int count)
        Specified by:
        read in interface AsyncInputStream
      • readFully

        public void readFully​(java.util.function.Supplier<Promise<?>> command)