Package org.teiid.core.types
Class BinaryType
- java.lang.Object
-
- org.teiid.core.types.BinaryType
-
- All Implemented Interfaces:
Comparable<BinaryType>
public final class BinaryType extends Object implements Comparable<BinaryType>
-
-
Constructor Summary
Constructors Constructor Description BinaryType(byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(BinaryType o)
boolean
equals(Object obj)
byte
getByte(int index)
Get the byte value at a given indexbyte[]
getBytes()
byte[]
getBytesDirect()
int
getLength()
int
hashCode()
BlobType
toBlob()
String
toString()
Returns the hex string representing the binary value.
-
-
-
Method Detail
-
getBytesDirect
public byte[] getBytesDirect()
- Returns:
- the actual bytes - no modifications should be performed
-
getBytes
public byte[] getBytes()
- Returns:
- a copy of the bytes
-
getByte
public byte getByte(int index)
Get the byte value at a given index- Parameters:
index
-
-
getLength
public int getLength()
-
compareTo
public int compareTo(BinaryType o)
- Specified by:
compareTo
in interfaceComparable<BinaryType>
-
toString
public String toString()
Returns the hex string representing the binary value.
-
toBlob
public BlobType toBlob()
-
-