|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.io.OutputStream
com.tangosol.io.WrapperDataOutputStream
com.tangosol.io.WrapperObjectOutputStream
public class WrapperObjectOutputStream
This is an imitation ObjectOutputStream class that provides the ObjectOutput interface by delegating to an object that implements the ObjectOutput interface. Primarily, this is intended as a base class for building specific-purpose ObjectOutput wrappers.
Constructor Summary | |
---|---|
WrapperObjectOutputStream(ObjectOutput out) Construct a WrapperObjectOutputStream that will output to the specified object implementing the ObjectOutput interface. |
Method Summary | |
---|---|
long |
getBytesWritten() Return the total number of bytes written to the wrapped DataOutput object. This method is unsupported. |
ObjectOutput |
getObjectOutput() Obtain the underlying object providing the ObjectOutput interface that this object is delegating to. |
void |
writeObject(Object o) Writes the Object o so that the corresponding ObjectInput.readObject() method can reconstitute an Object from the written data. |
Methods inherited from class com.tangosol.io.WrapperDataOutputStream |
---|
close, flush, getDataOutput, incBytesWritten, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from interface java.io.ObjectOutput |
---|
close, flush, write, write, write |
Methods inherited from interface java.io.DataOutput |
---|
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Constructor Detail |
---|
public WrapperObjectOutputStream(ObjectOutput out)
out
- an object implementing ObjectOutput to write toMethod Detail |
---|
public ObjectOutput getObjectOutput()
public long getBytesWritten()
This method is unsupported.
getBytesWritten
in class WrapperDataOutputStream
UnsupportedOperationException
public void writeObject(Object o) throws IOException
o
so that the corresponding ObjectInput.readObject()
method can reconstitute an Object from the written data.writeObject
in interface ObjectOutput
o
- the Object to writeIOException
- if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |