org.jboss.remoting.marshal
Interface Marshaller
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- SerializableMarshaller
- public interface Marshaller
- extends Serializable
Interface that all data marshallers must implements.
Requires them to take Java data objects and convert
primitive java data types (i.e. byte[]) and write
to output provided.
Since the Marshaller is only responsible for doing
the conversion to primitive type, does not make sense
that would be supplied any type of object output to
write to, as this implies that the object that it
writes would be converted to bytes at some other
point external to the marshaller.
- Author:
- Tom Elrod
Method Summary |
void |
write(Object dataObject,
OutputStream output)
Marshaller will need to take the dataObject and convert
into primitive java data types and write to the
given output. |
write
public void write(Object dataObject,
OutputStream output)
throws IOException
- Marshaller will need to take the dataObject and convert
into primitive java data types and write to the
given output.
- Parameters:
dataObject
- Object to be writen to outputoutput
- The data output to write the object
data to.
- Throws:
IOException
Copyright © 2004 JBoss Inc. All Rights Reserved.