Package com.tangosol.io
Interface ObjectStreamFactory
- 
- All Known Implementing Classes:
- ExternalizableHelper.DefaultObjectStreamFactory
 
 public interface ObjectStreamFactoryProvides the means to create ObjectInput and ObjectOutput streams based on primitive data streams in a layered, pluggable fashion.- Author:
- cp 2002.08.19
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectInputgetObjectInput(DataInput in, ClassLoader loader, boolean fForceNew)Obtain an ObjectInput based on the passed DataInput.ObjectOutputgetObjectOutput(DataOutput out)Obtain an ObjectOutput based on the passed DataOutput.
 
- 
- 
- 
Method Detail- 
getObjectInputObjectInput getObjectInput(DataInput in, ClassLoader loader, boolean fForceNew) throws IOException Obtain an ObjectInput based on the passed DataInput.- Parameters:
- in- the DataInput to be wrapped
- loader- the ClassLoader to be used
- fForceNew- 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
 
 - 
getObjectOutputObjectOutput getObjectOutput(DataOutput out) throws IOException Obtain an ObjectOutput based on the passed DataOutput.- 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
 
 
- 
 
-