public final class ByteWriter extends Object implements ObjectTable.Writer, ClassTable.Writer
Constructor and Description |
---|
ByteWriter(byte... bytes)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
writeClass(Marshaller marshaller,
Class<?> clazz)
Write the predefined class reference to the stream.
|
void |
writeObject(Marshaller marshaller,
Object object)
Write the predefined object reference to the stream.
|
public ByteWriter(byte... bytes)
bytes
- the bytes to writepublic void writeObject(Marshaller marshaller, Object object) throws IOException
ObjectTable.Writer
writeObject
in interface ObjectTable.Writer
marshaller
- the marshaller to write toobject
- the object reference to writeIOException
- if an I/O error occurspublic void writeClass(Marshaller marshaller, Class<?> clazz) throws IOException
ClassTable.Writer
writeClass
in interface ClassTable.Writer
marshaller
- the marshaller to write toclazz
- the class reference to writeIOException
- if an I/O error occursCopyright © 2018 JBoss by Red Hat. All rights reserved.