Package ch.ivyteam.ivy.scripting.objects
Class Binary
java.lang.Object
ch.ivyteam.ivy.scripting.objects.Binary
- All Implemented Interfaces:
IIvyDataObject
,Serializable
,Cloneable
A Binary objects is a wrapper object for a byte array.
- See Also:
- API:
- This is a public API.
-
Method Details
-
length
public int length()Returns the number of bytes of this object.- Returns:
- The number of bytes of this object.
- API:
- This public API is available in Java.
-
getByte
public byte getByte(int index) Returns the value of a byte at a given position.- Parameters:
index
- The index of the requested byte.- Returns:
- The byte with given index.
- API:
- This public API is available in Java.
-
equals
- See Also:
- API:
- This public API is available in Java.
-
hashCode
public int hashCode()- See Also:
- API:
- This public API is available in Java.
-
toString
- See Also:
- API:
- This public API is available in Java.
-
toByteArray
public byte[] toByteArray()Gets the bytes- Returns:
- the byte array; This instance is a clone from the wrapped byte array.
- API:
- This public API is available in Java.
-
clone
Creates a clone of this object.- Specified by:
clone
in interfaceIIvyDataObject
- Returns:
- A shallow clone.
- API:
- This public API is available in Java.
-