|
|||||||||
| Home >> All >> org >> [ hsqldb overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hsqldb
Class ByteArray

java.lang.Objectorg.hsqldb.ByteArray
- class ByteArray
- extends java.lang.Object
This class allows HSQLDB to store binary data as an array of bytes. It contains methods to create and access the data, perform comparisons, etc.
- Version:
- 1.7.0
| Constructor Summary | |
private |
ByteArray()
Private constructor, no instance of this is available. |
| Method Summary | |
(package private) static int |
compareTo(byte[] o1,
byte[] o2)
Compares a byte[] with another specified
byte[] for order. |
(package private) static java.lang.Object |
deserialize(byte[] ba)
Deserializes the specified byte array to an Object instance. |
(package private) static byte[] |
hexToByteArray(java.lang.String hexString)
Converts the specified hexadecimal digit String
to an equivalent array of bytes. |
(package private) static byte[] |
serialize(java.lang.Object s)
Retrieves the serialized form of the specified Object
as an array of bytes. |
(package private) static java.lang.String |
serializeToString(java.lang.Object s)
Retrieves the serialized form of the specified Object
as an equivalent String of hexadecimal digits. |
static java.lang.String |
toString(byte[] o)
Converts an array of bytes to an equivalent String of hexadecimal digits. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
ByteArray
private ByteArray()
- Private constructor, no instance of this is available.
| Method Detail |
hexToByteArray
static byte[] hexToByteArray(java.lang.String hexString) throws java.sql.SQLException
- Converts the specified hexadecimal digit
Stringto an equivalent array of bytes.
compareTo
static int compareTo(byte[] o1,
byte[] o2)
- Compares a
byte[]with another specifiedbyte[]for order. Returns a negative integer, zero, or a positive integer as the first object is less than, equal to, or greater than the specified secondbyte[].
serialize
static byte[] serialize(java.lang.Object s) throws java.sql.SQLException
- Retrieves the serialized form of the specified
Objectas an array of bytes.
serializeToString
static java.lang.String serializeToString(java.lang.Object s) throws java.sql.SQLException
- Retrieves the serialized form of the specified
Objectas an equivalentStringof hexadecimal digits.
deserialize
static java.lang.Object deserialize(byte[] ba) throws java.sql.SQLException
- Deserializes the specified byte array to an
Objectinstance.
toString
public static java.lang.String toString(byte[] o)
- Converts an array of bytes to an equivalent
Stringof hexadecimal digits.
|
|||||||||
| Home >> All >> org >> [ hsqldb overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.hsqldb.ByteArray