Class BinaryStreamImpl

    • Constructor Detail

      • BinaryStreamImpl

        public BinaryStreamImpl​(byte[] bytes)
        Constructs a BinaryStreamImpl
        Parameters:
        bytes - The bytes to use backing the stream
    • Method Detail

      • getBytes

        public byte[] getBytes()
        Description copied from interface: BinaryStream
        Access to the bytes.
        Specified by:
        getBytes in interface BinaryStream
        Returns:
        The bytes.
      • getLength

        public long getLength()
        Description copied from interface: BinaryStream
        Retrieve the length of the input stream
        Specified by:
        getLength in interface BinaryStream
        Returns:
        The input stream length
      • release

        public void release()
        Description copied from interface: BinaryStream
        Release any underlying resources.
        Specified by:
        release in interface BinaryStream