public interface ObjectStreamFactory
| Modifier and Type | Method | Description |
|---|---|---|
ObjectInput |
getObjectInput(DataInput in,
ClassLoader loader,
boolean fForceNew) |
Obtain an ObjectInput based on the passed DataInput.
|
ObjectOutput |
getObjectOutput(DataOutput out) |
Obtain an ObjectOutput based on the passed DataOutput.
|
ObjectInput getObjectInput(DataInput in, ClassLoader loader, boolean fForceNew) throws IOException
in - the DataInput to be wrappedloader - the ClassLoader to be usedfForceNew - if true, a new ObjectInput must be returned; otherwise,
if the passed stream is already an ObjectInput, it's
allowed to be returned insteadIOException - if an I/O exception occursObjectOutput getObjectOutput(DataOutput out) throws IOException
out - the DataOutput to be wrappedIOException - if an I/O exception occurs