Package org.jboss.marshalling
Class ByteWriter
- java.lang.Object
-
- org.jboss.marshalling.ByteWriter
-
- All Implemented Interfaces:
ClassTable.Writer
,ObjectTable.Writer
public final class ByteWriter extends Object implements ObjectTable.Writer, ClassTable.Writer
A writer for class or object tables which simply writes a flat sequence of bytes.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description ByteWriter(byte... bytes)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
writeObject
public void writeObject(Marshaller marshaller, Object object) throws IOException
Description copied from interface:ObjectTable.Writer
Write the predefined object reference to the stream.- Specified by:
writeObject
in interfaceObjectTable.Writer
- Parameters:
marshaller
- the marshaller to write toobject
- the object reference to write- Throws:
IOException
- if an I/O error occurs
-
writeClass
public void writeClass(Marshaller marshaller, Class<?> clazz) throws IOException
Description copied from interface:ClassTable.Writer
Write the predefined class reference to the stream.- Specified by:
writeClass
in interfaceClassTable.Writer
- Parameters:
marshaller
- the marshaller to write toclazz
- the class reference to write- Throws:
IOException
- if an I/O error occurs
-
-