org.jboss.remoting.marshal.serializable
Class SerializableMarshaller

java.lang.Object
  extended byorg.jboss.remoting.marshal.serializable.SerializableMarshaller
All Implemented Interfaces:
Marshaller, java.io.Serializable, SerialMarshaller
Direct Known Subclasses:
CompressingMarshaller, HTTPMarshaller

public class SerializableMarshaller
extends java.lang.Object
implements SerialMarshaller

Simple marshaller that simply serializes java objects using standard output stream.

Author:
Tom Elrod
See Also:
Serialized Form

Field Summary
static java.lang.String DATATYPE
           
 
Constructor Summary
SerializableMarshaller()
           
 
Method Summary
 Marshaller cloneMarshaller()
           
 java.lang.String getSerializationType()
           
 void setSerializationType(java.lang.String serializationType)
           
 void write(java.lang.Object dataObject, java.io.OutputStream output)
          Take the data object and write to the output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATATYPE

public static final java.lang.String DATATYPE
See Also:
Constant Field Values
Constructor Detail

SerializableMarshaller

public SerializableMarshaller()
Method Detail

setSerializationType

public void setSerializationType(java.lang.String serializationType)
Specified by:
setSerializationType in interface SerialMarshaller

getSerializationType

public java.lang.String getSerializationType()
Specified by:
getSerializationType in interface SerialMarshaller

write

public void write(java.lang.Object dataObject,
                  java.io.OutputStream output)
           throws java.io.IOException
Take the data object and write to the output. Has ben customized for working with ObjectOutputStreams since requires extra messaging.

Specified by:
write in interface Marshaller
Parameters:
dataObject - Object to be writen to output
output - The data output to write the object data to.
Throws:
java.io.IOException

cloneMarshaller

public Marshaller cloneMarshaller()
                           throws java.lang.CloneNotSupportedException
Specified by:
cloneMarshaller in interface Marshaller
Throws:
java.lang.CloneNotSupportedException


Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.