opencard.tests.testframe
Class UByteArray
java.lang.Object
|
+--opencard.tests.testframe.UByteArray
- public class UByteArray
- extends java.lang.Object
UByteArray - A wrapper class for unsigned byte arrays.
- Version:
- $Id: UByteArray.java,v 1.1 1999/12/03 09:31:40 damke Exp $
- See Also:
HexString
|
Constructor Summary |
protected |
UByteArray()
hide this one |
|
UByteArray(byte[] array)
construct it with a byte array if your programm
has to speed up a bit |
|
UByteArray(byte pattern,
int size)
construct it with a defined length (size) and fill it with a
bytepattern. |
|
UByteArray(int integer)
construct it with a integer value. |
|
UByteArray(java.lang.String hexString)
construct it with a nice looking friendly String |
|
Method Summary |
byte |
byteValue(int index)
return the byte with index of byte_array as a byte |
static boolean |
equal(byte[] a,
byte[] b)
Deprecated. |
boolean |
equals(byte[] array)
Check whether this UByteArray equals another byte[]. |
boolean |
equals(java.lang.Object byteArray)
Check whether this UByteArray equals another UByteArray. |
byte[] |
getBytes()
return the byte_array as byte array |
int |
hashCode()
|
int |
intValue(int index)
return the byte with index of byte_array as a integer |
java.lang.String |
toString()
return the byte_array as String |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
UByteArray
protected UByteArray()
- hide this one
UByteArray
public UByteArray(java.lang.String hexString)
- construct it with a nice looking friendly String
UByteArray
public UByteArray(byte[] array)
- construct it with a byte array if your programm
has to speed up a bit
UByteArray
public UByteArray(byte pattern,
int size)
- construct it with a defined length (size) and fill it with a
bytepattern.
UByteArray
public UByteArray(int integer)
- construct it with a integer value.
equals
public boolean equals(java.lang.Object byteArray)
- Check whether this UByteArray equals another UByteArray.
- Overrides:
- equals in class java.lang.Object
equals
public boolean equals(byte[] array)
- Check whether this UByteArray equals another byte[].
equal
public static boolean equal(byte[] a,
byte[] b)
- Deprecated.
- Check whether this UByteArray equals another UByteArray.
This method is need to garantee compatability with prior OCF Releases
- Parameters:
a - first byte arrayb - second byte array- Returns:
- true if both arrays are equal, false otherwise.
hashCode
public int hashCode()
- Overrides:
- hashCode in class java.lang.Object
byteValue
public byte byteValue(int index)
- return the byte with index of byte_array as a byte
intValue
public int intValue(int index)
- return the byte with index of byte_array as a integer
getBytes
public byte[] getBytes()
- return the byte_array as byte array
toString
public java.lang.String toString()
- return the byte_array as String
- Overrides:
- toString in class java.lang.Object
|