|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcryptix.util.ByteArray
A class that represents a byte array.
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.2 $
| Field Summary | |
protected byte[] |
data
|
| Constructor Summary | |
ByteArray(byte[] buf)
Constructs a ByteArray from a copy of the data in buf. |
|
ByteArray(byte[] buf,
boolean copy)
Constructs a ByteArray from data in buf. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
byte[] |
getData()
Returns a copy of this ByteArray's data. |
int |
hashCode()
|
int |
length()
Returns the length (in bytes) of this ByteArray's data. |
static boolean |
theSame(byte[] a,
byte[] b)
Deprecated. Use ArrayUtil.areEqual(a, b) instead. |
byte[] |
toByteArray()
Deprecated. Use getData() instead. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected byte[] data
| Constructor Detail |
public ByteArray(byte[] buf,
boolean copy)
To construct a ByteArray from a String using ISO-Latin-1 encoding, use
new ByteArray(LegacyString.toByteArray(str), false).
public ByteArray(byte[] buf)
| Method Detail |
public int length()
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
public byte[] getData()
public byte[] toByteArray()
getData() instead.
public static boolean theSame(byte[] a,
byte[] b)
ArrayUtil.areEqual(a, b) instead.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||