Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb
Class ByteArray  view ByteArray download ByteArray.java

java.lang.Object
  extended byorg.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 String to an equivalent array of bytes.


compareTo

static int compareTo(byte[] o1,
                     byte[] o2)
Compares a byte[] with another specified byte[] 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 second byte[].


serialize

static byte[] serialize(java.lang.Object s)
                 throws java.sql.SQLException
Retrieves the serialized form of the specified Object as 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 Object as an equivalent String of hexadecimal digits.


deserialize

static java.lang.Object deserialize(byte[] ba)
                             throws java.sql.SQLException
Deserializes the specified byte array to an Object instance.


toString

public static java.lang.String toString(byte[] o)
Converts an array of bytes to an equivalent String of hexadecimal digits.