Class SerializingCloner.StepObjectOutput
java.lang.Object
java.io.OutputStream
org.jboss.marshalling.SimpleByteOutput
org.jboss.marshalling.ByteOutputStream
org.jboss.marshalling.SimpleDataOutput
org.jboss.marshalling.AbstractObjectOutput
org.jboss.marshalling.cloner.SerializingCloner.StepObjectOutput
- All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, AutoCloseable, ByteOutput, Marshaller
- Enclosing class:
SerializingCloner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteArrayOutputStreamprivate final Queue<SerializingCloner.Step> Fields inherited from class SimpleDataOutput
buffer, bufferSizeFields inherited from class ByteOutputStream
byteOutput -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDiscard the class cache.voidDiscard the instance cache.(package private) voiddoFinish()protected voiddoWriteObject(Object obj, boolean unshared) Implementation of the actual object-writing method.voidfinish()Finish writing to a stream.voidflush()voidstart(ByteOutput byteOutput) Begin writing to a stream.Methods inherited from class AbstractObjectOutput
writeObject, writeObjectUnsharedMethods inherited from class SimpleDataOutput
close, shallowFlush, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from class OutputStream
nullOutputStreamMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ByteOutput
write, write, writeMethods inherited from interface DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from interface Marshaller
writeObjectUnsharedMethods inherited from interface ObjectOutput
close, write, write, write, writeObject
-
Field Details
-
steps
-
byteArrayOutputStream
-
-
Constructor Details
-
StepObjectOutput
StepObjectOutput(Queue<SerializingCloner.Step> steps) throws IOException - Throws:
IOException
-
-
Method Details
-
doWriteObject
Description copied from class:AbstractObjectOutputImplementation of the actual object-writing method.- Specified by:
doWriteObjectin classAbstractObjectOutput- Parameters:
obj- the object to writeunshared-trueif the instance is unshared,falseif it is shared- Throws:
IOException- if an I/O error occurs
-
clearInstanceCache
Description copied from interface:MarshallerDiscard the instance cache. May also discard the class cache in implementations that do not support separated class and instance caches.- Specified by:
clearInstanceCachein interfaceMarshaller- Throws:
IOException- if an error occurs
-
clearClassCache
Description copied from interface:MarshallerDiscard the class cache. Implicitly also discards the instance cache.- Specified by:
clearClassCachein interfaceMarshaller- Throws:
IOException- if an error occurs
-
start
Description copied from class:SimpleDataOutputBegin writing to a stream.- Specified by:
startin interfaceMarshaller- Overrides:
startin classSimpleDataOutput- Parameters:
byteOutput- the new stream- Throws:
IOException- if an error occurs
-
finish
Description copied from class:SimpleDataOutputFinish writing to a stream. The stream is released. No further writing may be done until theSimpleDataOutput.start(ByteOutput)method is again invoked.- Specified by:
finishin interfaceMarshaller- Overrides:
finishin classSimpleDataOutput- Throws:
IOException- if an error occurs
-
doFinish
- Throws:
IOException
-
flush
Description copied from class:SimpleDataOutput- Specified by:
flushin interfaceFlushable- Specified by:
flushin interfaceObjectOutput- Overrides:
flushin classSimpleDataOutput- Throws:
IOException
-