Package mondrian.util

Class ByteString

    • Constructor Detail

      • ByteString

        public ByteString​(byte[] bytes)
        Creates a ByteString.
        Parameters:
        bytes - Bytes
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Returns this byte string in hexadecimal format.
        Overrides:
        toString in class Object
        Returns:
        Hexadecimal string
      • length

        public int length()
        Returns the number of bytes in this byte string.
        Returns:
        Length of this byte string
      • byteAt

        public byte byteAt​(int i)
        Returns the byte at a given position in the byte string.
        Parameters:
        i - Index
        Returns:
        Byte at given position
        Throws:
        IndexOutOfBoundsException - if the index argument is negative or not less than length()