org.objectweb.jeremie.presentation.api
Interface JRMIMarshaller

All Superinterfaces:
org.objectweb.jonathan.presentation.api.Marshaller
All Known Implementing Classes:
StdMarshallerFactory.StdMarshaller, StdMarshallerFactory.StdMarshallerL

public interface JRMIMarshaller
extends org.objectweb.jonathan.presentation.api.Marshaller

A JRMIMarshaller provides a high-level encoding-independent interface for marshalling remote method invocations.


Method Summary
 void writeException(Exception e)
          Writes an exception thrown by a remote method invocation to an underlying stream.
 void writeMethod(Method m)
          Writes the method in a remote method invocation to an underlying stream.
 void writeParameters(Object[] p)
          Writes the arguments in a remote method invocation to an underlying stream.
 void writeResult(Object o)
          Writes the result of a remote method invocation to an underlying stream.
 
Methods inherited from interface org.objectweb.jonathan.presentation.api.Marshaller
close, getContext, getOffset, getState, isLittleEndian, outputStream, reset, sameContents, setOffset, write, writeBoolean, writeByte, writeByteArray, writeChar16, writeChar8, writeDouble, writeFloat, writeInt, writeLong, writeReference, writeShort, writeString16, writeString8, writeValue
 

Method Detail

writeMethod

void writeMethod(Method m)
                 throws MarshalException
Writes the method in a remote method invocation to an underlying stream.

Parameters:
m - the method to be written.
Throws:
MarshalException - if something goes wrong.

writeParameters

void writeParameters(Object[] p)
                     throws MarshalException
Writes the arguments in a remote method invocation to an underlying stream.

Parameters:
p - the objects representing the arguments.
Throws:
MarshalException - if something goes wrong.

writeResult

void writeResult(Object o)
                 throws MarshalException
Writes the result of a remote method invocation to an underlying stream.

Parameters:
o - the object representing the result.
Throws:
MarshalException - if something goes wrong.

writeException

void writeException(Exception e)
                    throws MarshalException
Writes an exception thrown by a remote method invocation to an underlying stream.

Parameters:
e - the thrown exception.
Throws:
MarshalException - if something goes wrong.