| java.lang.Object org.hsqldb.lib.InOutUtil
InOutUtil | public class InOutUtil (Code) | | Input / Output utility
author: fredt@users version: 1.8.0 since: 1.7.2 |
Method Summary | |
public static Serializable | deserialize(byte[] ba) Deserializes the specified byte array to an
Object instance. | public static int | readLine(InputStream in, OutputStream out) Implementation only supports unix line-end format and is suitable for
processing HTTP and other network protocol communications. | public static byte[] | serialize(Serializable s) Retrieves the serialized form of the specified Object
as an array of bytes. |
deserialize | public static Serializable deserialize(byte[] ba) throws IOException, ClassNotFoundException(Code) | | Deserializes the specified byte array to an
Object instance.
the Object resulting from deserializing the specified array of bytes Parameters: ba - the byte array to deserialize to an Object throws: HsqlException - if a serialization failure occurs |
readLine | public static int readLine(InputStream in, OutputStream out) throws IOException(Code) | | Implementation only supports unix line-end format and is suitable for
processing HTTP and other network protocol communications. Reads and writes
a line of data. Returns the number of bytes read/written.
|
serialize | public static byte[] serialize(Serializable s) throws IOException(Code) | | Retrieves the serialized form of the specified Object
as an array of bytes.
Parameters: s - the Object to serialize a static byte array representing the passed Object throws: HsqlException - if a serialization failure occurs |
|
|