Class AbstractLazyEncodedByteArray

    • Constructor Detail

      • AbstractLazyEncodedByteArray

        protected AbstractLazyEncodedByteArray()
        Constructs a new AbstractLazyEncodedByteArray with no field values.
      • AbstractLazyEncodedByteArray

        protected AbstractLazyEncodedByteArray​(byte[] data)
        Constructs a new AbstractLazyEncodedByteArray object from network-encoded data. The state is in the encoded form: it is not decoded and might not be decodable.
        Parameters:
        data - network-encoded data
        Throws:
        NullPointerException - if data is null
      • AbstractLazyEncodedByteArray

        protected AbstractLazyEncodedByteArray​(byte[] data,
                                               int start,
                                               int len)
        Constructs a new AbstractLazyEncodedByteArray from part of given network-encoded data. The part starts at index start and is len bytes long. The state is in the encoded form: it is not decoded and might not be decodable.
        Parameters:
        data - network-encoded data
        start - starting offset of network-encoded data
        len - length of encoded part in bytes
        Throws:
        NullPointerException - if data is null
        IllegalArgumentException - if len is negative
        ArrayIndexOutOfBoundsException - if the part is not within the data