|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.global.ObjectTransfer
public class ObjectTransfer
Provides static methods for transfering different types of objects over a Data input/output stream.
Constructor Summary | |
---|---|
ObjectTransfer()
|
Method Summary | |
---|---|
static int |
exactSize(java.lang.Object ob)
Returns the exact size an object will take up when serialized. |
static java.lang.Object |
readFrom(java.io.DataInputStream in)
Writes an object from the data input stream. |
static int |
size(java.lang.Object ob)
Makes an estimate of the size of the object. |
static void |
writeTo(java.io.DataOutput out,
java.lang.Object ob)
Writes an object to the data output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectTransfer()
Method Detail |
---|
public static int size(java.lang.Object ob) throws java.io.IOException
java.io.IOException
public static int exactSize(java.lang.Object ob) throws java.io.IOException
java.io.IOException
public static void writeTo(java.io.DataOutput out, java.lang.Object ob) throws java.io.IOException
java.io.IOException
public static java.lang.Object readFrom(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |