|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.hsqldb.ByteArray
ByteArray class declaration
This class allows HSQL to store binary data as an array of bytes. It contains methods to create and access the data, perform comparisons, etc.
Constructor Summary | |
(package private) |
ByteArray(byte[] a)
ByteArray Constructor declaration |
(package private) |
ByteArray(java.lang.String s)
ByteArray Constructor declaration |
Method Summary | |
(package private) byte[] |
byteValue()
byteVake method declaration |
(package private) int |
compareTo(ByteArray o)
compareTo method declaration |
(package private) static java.lang.String |
createString(byte[] b)
createString method declaration |
(package private) java.lang.Object |
deserialize()
deserialize method declaration |
int |
hashCode()
hashcode method declaration |
(package private) static byte[] |
serialize(java.lang.Object s)
serialize method declaration |
(package private) static java.lang.String |
serializeToString(java.lang.Object s)
serializeToString method declaration |
java.lang.String |
toString()
toString method declaration |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
ByteArray(java.lang.String s)
Converts a string parameter to the array of bytes the ByteArray object will contain.
s
- ByteArray(byte[] a)
Creates a ByteArray object from an array of bytes.
s
- Method Detail |
byte[] byteValue()
Give access to the object's data
int compareTo(ByteArray o)
This method compares the object to another ByteArray object.
ByteArray
- object we are comparing against.static byte[] serialize(java.lang.Object s) throws java.sql.SQLException
This method serializes an Object into an array of bytes.
The
- Object to serializestatic java.lang.String serializeToString(java.lang.Object s) throws java.sql.SQLException
This method serializes an Object into a String.
The
- Object to serializejava.lang.Object deserialize() throws java.sql.SQLException
This method returns the array of bytes stored in the instance of ByteArray class as an Object instance.
static java.lang.String createString(byte[] b)
This method creates a String from the passed array of bytes.
byte
- array to convert.public java.lang.String toString()
This method creates a String from the passed array of bytes stored in this instance of the ByteArray class.
public int hashCode()
This method returns the hashcode for the data stored in this instance of the ByteArray class.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |