|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
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(java.io.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. |
java.io.ObjectOutput |
getObjectOutput() Obtain the underlying object providing the ObjectOutput interface that this object is delegating to. |
void |
writeObject(java.lang.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(java.io.ObjectOutput out)
out
- an object implementing ObjectOutput to write toMethod Detail |
---|
public java.io.ObjectOutput getObjectOutput()
public long getBytesWritten()
This method is unsupported.
getBytesWritten
in class WrapperDataOutputStream
java.lang.UnsupportedOperationException
public void writeObject(java.lang.Object o) throws java.io.IOException
o
so that the corresponding ObjectInput.readObject()
method can reconstitute an Object from the written data.writeObject
in interface java.io.ObjectOutput
o
- the Object to writejava.io.IOException
- if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |