AutoCloseable
, ByteOutput
, Closeable
, DataOutput
, Flushable
, ObjectOutput
AbstractMarshaller
, BlockMarshaller
, BlockMarshaller
, ObjectOutputStreamMarshaller
, RiverMarshaller
, SerialMarshaller
public interface Marshaller extends ObjectOutput, ByteOutput
Modifier and Type | Method | Description |
---|---|---|
void |
clearClassCache() |
Discard the class cache.
|
void |
clearInstanceCache() |
Discard the instance cache.
|
void |
finish() |
Finish marshalling to a stream.
|
void |
start(ByteOutput newOutput) |
Begin marshalling to a stream.
|
void |
writeObjectUnshared(Object obj) |
Write an object to the underlying storage or stream as a new instance.
|
write, write, write
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
close, flush, write, write, write, writeObject
void writeObjectUnshared(Object obj) throws IOException
obj
- the object to be writtenIOException
- if an error occursvoid start(ByteOutput newOutput) throws IOException
newOutput
- the new streamIOException
- if an error occurs during setup, such as an error writing the headervoid clearInstanceCache() throws IOException
IOException
- if an error occursvoid clearClassCache() throws IOException
IOException
- if an error occursvoid finish() throws IOException
start(ByteOutput)
method is again invoked.IOException
- if an error occursCopyright © 2019 JBoss by Red Hat. All rights reserved.