Class UnsafeByteBufferInput

    • Constructor Detail

      • UnsafeByteBufferInput

        public UnsafeByteBufferInput()
        Creates an uninitialized Input, setBuffer(ByteBuffer) must be called before the Input is used.
      • UnsafeByteBufferInput

        public UnsafeByteBufferInput​(int bufferSize)
        Creates a new Input for reading from a direct ByteBuffer.
        Parameters:
        bufferSize - The size of the buffer. An exception is thrown if more bytes than this are read and ByteBufferInput.fill(ByteBuffer, int, int) does not supply more bytes.
      • UnsafeByteBufferInput

        public UnsafeByteBufferInput​(byte[] bytes)
        Creates a new Input for reading from a ByteBuffer which is filled with the specified bytes.
      • UnsafeByteBufferInput

        public UnsafeByteBufferInput​(byte[] bytes,
                                     int offset,
                                     int count)
        Creates a new Input for reading from a ByteBuffer which is filled with the specified bytes.
      • UnsafeByteBufferInput

        public UnsafeByteBufferInput​(ByteBuffer buffer)
        Creates a new Input for reading from a ByteBuffer.
      • UnsafeByteBufferInput

        public UnsafeByteBufferInput​(long address,
                                     int size)
        Creates a new Input for reading from a ByteBuffer representing the memory region at the specified address and size. @throws UnsupportedOperationException if creating a ByteBuffer this way is not available.
      • UnsafeByteBufferInput

        public UnsafeByteBufferInput​(InputStream inputStream)
        Creates a new Input for reading from an InputStream with a buffer size of 4096.
      • UnsafeByteBufferInput

        public UnsafeByteBufferInput​(InputStream inputStream,
                                     int bufferSize)
        Creates a new Input for reading from an InputStream with the specified buffer size.