public static class ExternalizableHelper.DefaultObjectStreamFactory extends Object implements ObjectStreamFactory
Constructor and Description |
---|
DefaultObjectStreamFactory() |
Modifier and Type | Method and 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.
|
public ObjectInput getObjectInput(DataInput in, ClassLoader loader, boolean fForceNew) throws IOException
getObjectInput
in interface ObjectStreamFactory
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 occurspublic ObjectOutput getObjectOutput(DataOutput out) throws IOException
getObjectOutput
in interface ObjectStreamFactory
out
- the DataOutput to be wrappedIOException
- if an I/O exception occurs