class SerializingCloner.StepObjectOutput extends AbstractObjectOutput implements Marshaller
| Modifier and Type | Field and Description |
|---|---|
private java.io.ByteArrayOutputStream |
byteArrayOutputStream |
private java.util.Queue<SerializingCloner.Step> |
steps |
buffer, bufferSizebyteOutput| Constructor and Description |
|---|
StepObjectOutput(java.util.Queue<SerializingCloner.Step> steps) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearClassCache()
Discard the class cache.
|
void |
clearInstanceCache()
Discard the instance cache.
|
(package private) void |
doFinish() |
protected void |
doWriteObject(java.lang.Object obj,
boolean unshared)
Implementation of the actual object-writing method.
|
void |
finish()
Finish writing to a stream.
|
void |
flush() |
void |
start(ByteOutput byteOutput)
Begin writing to a stream.
|
writeObject, writeObjectUnsharedclose, shallowFlush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteObjectUnsharedwriteBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFwrite, write, writeprivate final java.util.Queue<SerializingCloner.Step> steps
private final java.io.ByteArrayOutputStream byteArrayOutputStream
StepObjectOutput(java.util.Queue<SerializingCloner.Step> steps) throws java.io.IOException
java.io.IOExceptionprotected void doWriteObject(java.lang.Object obj,
boolean unshared)
throws java.io.IOException
AbstractObjectOutputdoWriteObject in class AbstractObjectOutputobj - the object to writeunshared - true if the instance is unshared, false if it is sharedjava.io.IOException - if an I/O error occurspublic void clearInstanceCache()
throws java.io.IOException
MarshallerclearInstanceCache in interface Marshallerjava.io.IOException - if an error occurspublic void clearClassCache()
throws java.io.IOException
MarshallerclearClassCache in interface Marshallerjava.io.IOException - if an error occurspublic void start(ByteOutput byteOutput) throws java.io.IOException
SimpleDataOutputstart in interface Marshallerstart in class SimpleDataOutputbyteOutput - the new streamjava.io.IOException - if an error occurspublic void finish()
throws java.io.IOException
SimpleDataOutputSimpleDataOutput.start(ByteOutput) method is again invoked.finish in interface Marshallerfinish in class SimpleDataOutputjava.io.IOException - if an error occursvoid doFinish()
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
SimpleDataOutputflush in interface java.io.Flushableflush in interface java.io.ObjectOutputflush in class SimpleDataOutputjava.io.IOException