org.objectweb.jeremie.apis.presentation
Interface JRMIMarshaller

All Superinterfaces:
Marshaller
All Known Implementing Classes:
StdMarshallerFactory.StdMarshaller

public interface JRMIMarshaller
extends Marshaller

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


Method Summary
 void writeException(java.lang.Exception e)
          Writes an exception thrown by a remote method invocation to an underlying stream.
 void writeMethod(java.lang.reflect.Method m)
          Writes the method in a remote method invocation to an underlying stream.
 void writeParameters(java.lang.Object[] p)
          Writes the arguments in a remote method invocation to an underlying stream.
 void writeResult(java.lang.Object o)
          Writes the result of a remote method invocation to an underlying stream.
 
Methods inherited from interface org.objectweb.jonathan.apis.presentation.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

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

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

writeParameters

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

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

writeResult

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

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

writeException

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

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