Package com.tangosol.util
Class ExternalizableHelper.DefaultObjectStreamFactory
- java.lang.Object
-
- com.tangosol.util.ExternalizableHelper.DefaultObjectStreamFactory
-
- All Implemented Interfaces:
ObjectStreamFactory
- Enclosing class:
- ExternalizableHelper
public static class ExternalizableHelper.DefaultObjectStreamFactory extends Object implements ObjectStreamFactory
Default ObjectStreamFactory implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultObjectStreamFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
getObjectInput
public ObjectInput getObjectInput(DataInput in, ClassLoader loader, boolean fForceNew) throws IOException
Obtain an ObjectInput based on the passed DataInput.- Specified by:
getObjectInput
in interfaceObjectStreamFactory
- Parameters:
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 instead- Returns:
- an ObjectInput that delegates to ("wraps") the passed DataInput
- Throws:
IOException
- if an I/O exception occurs
-
getObjectOutput
public ObjectOutput getObjectOutput(DataOutput out) throws IOException
Obtain an ObjectOutput based on the passed DataOutput.- Specified by:
getObjectOutput
in interfaceObjectStreamFactory
- Parameters:
out
- the DataOutput to be wrapped- Returns:
- an ObjectOutput that delegates to ("wraps") the passed DataOutput
- Throws:
IOException
- if an I/O exception occurs
-
-