Package ch.ivyteam.ivy.scripting.objects
Class Binary
- java.lang.Object
-
- ch.ivyteam.ivy.scripting.objects.Binary
-
- All Implemented Interfaces:
IIvyDataObject
,Serializable
,Cloneable
public final class Binary extends Object implements IIvyDataObject
A Binary objects is a wrapper object for a byte array.- See Also:
- Serialized Form
- API:
- This is a public API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Binary
clone()
Creates a clone of this object.boolean
equals(Object anObject)
byte
getByte(int index)
Returns the value of a byte at a given position.int
hashCode()
int
length()
Returns the number of bytes of this object.String
toString()
-
-
-
Method Detail
-
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 IvyScript and Java. It has the visibility NOVICE.
-
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 IvyScript and Java. It has the visibility NOVICE.
-
equals
public boolean equals(Object anObject)
- See Also:
Object.equals(java.lang.Object)
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
hashCode
public int hashCode()
- See Also:
Object.hashCode()
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
toString
public String toString()
- See Also:
Object.toString()
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
clone
public Binary clone()
Creates a clone of this object.- Specified by:
clone
in interfaceIIvyDataObject
- Returns:
- A shallow clone.
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
-