public class ObjectTransfer extends Object
Constructor and Description |
---|
ObjectTransfer() |
Modifier and Type | Method and Description |
---|---|
static int |
exactSize(Object ob)
Returns the exact size an object will take up when serialized.
|
static Object |
readFrom(DataInputStream in)
Writes an object from the data input stream.
|
static int |
size(Object ob)
Makes an estimate of the size of the object.
|
static void |
writeTo(DataOutput out,
Object ob)
Writes an object to the data output stream.
|
public static int size(Object ob) throws IOException
IOException
public static int exactSize(Object ob) throws IOException
IOException
public static void writeTo(DataOutput out, Object ob) throws IOException
IOException
public static Object readFrom(DataInputStream in) throws IOException
IOException
Copyright © 2015. All rights reserved.