Class NCData

    • Constructor Summary

      Constructors 
      Constructor Description
      NCData​(byte[] value)
      Create a NCData instance.
      NCData​(byte[] value, int offset, int length)
      Create a NCData instance.
      NCData​(java.nio.ByteBuffer value)
      Constructs a NCData object holding the specified bytes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] byteArray()
      Returns the value of this object as byte[]
      java.nio.ByteBuffer bytes()
      Returns the ByteBuffer value of this object
      int count()
      Returns the number of bytes
      boolean equals​(java.lang.Object other)
      Force subclasses to implement.
      int getType()
      Returns the type of this NCType object.
      int hashCode()
      Force subclasses to implement.
      java.lang.String toString()
      Force subclasses to implement.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NCData

        public NCData​(byte[] value)
        Create a NCData instance.
        Parameters:
        value - ByteBuffer value of the created instance
      • NCData

        public NCData​(byte[] value,
                      int offset,
                      int length)
        Create a NCData instance.
        Parameters:
        value - ByteBuffer value of the created instance
        offset - offset of the subarray to be used
        length - length of the subarray to be used
      • NCData

        public NCData​(java.nio.ByteBuffer value)
        Constructs a NCData object holding the specified bytes. The NCData instance creates a copy of the specified ByteBuffer object.
        Parameters:
        value - bytes represented by the created object
    • Method Detail

      • count

        public int count()
        Returns the number of bytes
        Returns:
        number of bytes
      • bytes

        public java.nio.ByteBuffer bytes()
        Returns the ByteBuffer value of this object
        Returns:
        ByteBuffer value of this object
      • byteArray

        public byte[] byteArray()
        Returns the value of this object as byte[]
        Returns:
        byte[] value of this object
      • getType

        public int getType()
        Description copied from class: NCType
        Returns the type of this NCType object.
        Specified by:
        getType in class NCType
        Returns:
        the type of this NCType
      • hashCode

        public int hashCode()
        Description copied from class: NCType
        Force subclasses to implement.
        Specified by:
        hashCode in class NCType
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object other)
        Description copied from class: NCType
        Force subclasses to implement.
        Specified by:
        equals in class NCType
        See Also:
        Object.equals(java.lang.Object)
      • toString

        public java.lang.String toString()
        Description copied from class: NCType
        Force subclasses to implement.
        Specified by:
        toString in class NCType
        See Also:
        Object.toString()