Top Description Fields Constructors Methods
org.jboss.marshalling

public final Class ByteWriter

extends Object
implements Writer, Writer
Class Inheritance
All Implemented Interfaces
org.jboss.marshalling.ClassTable.Writer, org.jboss.marshalling.ObjectTable.Writer
Imports
java.io.IOException

A writer for class or object tables which simply writes a flat sequence of bytes.
Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private final byte[]

Constructor Summary

AccessConstructor and Description
public
ByteWriter(final byte...
the bytes to write
bytes
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public void
writeClass(final Marshaller
the marshaller to write to
marshaller
,
final Class<?>
the class reference to write
clazz
)

Implements org.jboss.marshalling.ClassTable.Writer.writeClass.

Write the predefined class reference to the stream.
public void
writeObject(final Marshaller
the marshaller to write to
marshaller
,
final Object
the object reference to write
object
)

Implements org.jboss.marshalling.ObjectTable.Writer.writeObject.

Write the predefined object reference to the stream.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bytesback to summary
private final byte[] bytes

Constructor Detail

ByteWriterback to summary
public ByteWriter(final byte... bytes)

Construct a new instance.

Parameters
bytes:byte[]

the bytes to write

Method Detail

writeClassback to summary
public void writeClass(final Marshaller marshaller, final Class<?> clazz) throws IOException

Implements org.jboss.marshalling.ClassTable.Writer.writeClass.

Doc from org.jboss.marshalling.ClassTable.Writer.writeClass.

Write the predefined class reference to the stream.

Parameters
marshaller:Marshaller

the marshaller to write to

clazz:Class<?>

the class reference to write

Exceptions
IOException:
if an I/O error occurs
writeObjectback to summary
public void writeObject(final Marshaller marshaller, final Object object) throws IOException

Implements org.jboss.marshalling.ObjectTable.Writer.writeObject.

Doc from org.jboss.marshalling.ObjectTable.Writer.writeObject.

Write the predefined object reference to the stream.

Parameters
marshaller:Marshaller

the marshaller to write to

object:Object

the object reference to write

Exceptions
IOException:
if an I/O error occurs