
public final class ByteWriter extends java.lang.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,
java.lang.Class<?> clazz)
Write the predefined class reference to the stream.
|
void |
writeObject(Marshaller marshaller,
java.lang.Object object)
Write the predefined object reference to the stream.
|
public ByteWriter(byte... bytes)
bytes - the bytes to writepublic void writeObject(Marshaller marshaller, java.lang.Object object) throws java.io.IOException
ObjectTable.WriterwriteObject in interface ObjectTable.Writermarshaller - the marshaller to write toobject - the object reference to writejava.io.IOException - if an I/O error occurspublic void writeClass(Marshaller marshaller, java.lang.Class<?> clazz) throws java.io.IOException
ClassTable.WriterwriteClass in interface ClassTable.Writermarshaller - the marshaller to write toclazz - the class reference to writejava.io.IOException - if an I/O error occursCopyright © 2011 JBoss, a division of Red Hat, Inc.