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 Binaryclone()Creates a clone of this object.booleanequals(Object anObject)bytegetByte(int index)Returns the value of a byte at a given position.inthashCode()intlength()Returns the number of bytes of this object.StringtoString()
-
-
-
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:
clonein interfaceIIvyDataObject- Returns:
- A shallow clone.
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
-