public class ObjectTransfer
extends java.lang.Object
| Constructor | Description |
|---|---|
ObjectTransfer() |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
public static int size(java.lang.Object ob)
throws java.io.IOException
java.io.IOExceptionpublic static int exactSize(java.lang.Object ob)
throws java.io.IOException
java.io.IOExceptionpublic static void writeTo(java.io.DataOutput out,
java.lang.Object ob)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Object readFrom(java.io.DataInputStream in)
throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All rights reserved.