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
IOExceptionpublic static int exactSize(Object ob) throws IOException
IOExceptionpublic static void writeTo(DataOutput out, Object ob) throws IOException
IOExceptionpublic static Object readFrom(DataInputStream in) throws IOException
IOExceptionCopyright © 2019. All rights reserved.