Class BufferInputStream

    • Constructor Detail

      • BufferInputStream

        public BufferInputStream​(Buffer buffer)
        Create the InputStream over Grizzly Buffer. Constructed BufferInputStream read operations will affect the passed Buffer position, which means each BufferInputStream read operation will shift Buffer's position by number of bytes, which were read.
        Parameters:
        buffer -
      • BufferInputStream

        public BufferInputStream​(Buffer buffer,
                                 int position,
                                 int limit)
        Create the InputStream over Grizzly Buffer. Constructed BufferInputStream read operations will *not* affect the passed Buffer position, which means the passed Buffer position will never be changed during BufferInputStream
        Parameters:
        buffer -