Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.io
Interface ObjectStreamFactory

    public interface ObjectStreamFactory

Provides the means to create ObjectInput and ObjectOutput streams based on primitive data streams in a layered, pluggable fashion.

Author:
  cp 2002.08.19

Method Summary
`java.io.ObjectInput` | `getObjectInput(java.io.DataInput in, java.lang.ClassLoader loader, boolean fForceNew)` Obtain an ObjectInput based on the passed DataInput.
`java.io.ObjectOutput` | `getObjectOutput(java.io.DataOutput out)` Obtain an ObjectOutput based on the passed DataOutput.

Method Detail

### getObjectInput

    java.io.ObjectInput getObjectInput(java.io.DataInput in,
                                       java.lang.ClassLoader loader,
                                       boolean fForceNew)
                                       throws java.io.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:
    `java.io.IOException` - if an I/O exception occurs

### getObjectOutput

    java.io.ObjectOutput getObjectOutput(java.io.DataOutput out)
                                         throws java.io.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:
    `java.io.IOException` - if an I/O exception occurs

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.