Class DataInputBuffer

    • Constructor Detail

      • DataInputBuffer

        public DataInputBuffer​(java.nio.ByteBuffer buffer,
                               boolean duplicate)
        Parameters:
        buffer -
        duplicate - Whether or not to duplicate the buffer to ensure thread safety
      • DataInputBuffer

        public DataInputBuffer​(byte[] buffer,
                               int offset,
                               int length)
      • DataInputBuffer

        public DataInputBuffer​(byte[] buffer)
    • Method Detail

      • reBuffer

        protected void reBuffer()
        Description copied from class: RebufferingInputStream
        Implementations must implement this method to refill the buffer. They can expect the buffer to be empty when this method is invoked.
        Specified by:
        reBuffer in class RebufferingInputStream
      • available

        public int available()
        Overrides:
        available in class java.io.InputStream
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream