org.objectweb.jeremie.presentation.api

Interface JRMIUnMarshaller

All Superinterfaces:
UnMarshaller
Known Implementing Classes:
StdMarshallerFactory.StdUnMarshaller, StdMarshallerFactory.StdUnMarshallerD

public interface JRMIUnMarshaller
extends UnMarshaller

A JRMIUnMarshaller provides a high-level encoding-independent interface for unmarshalling remote method invocations.

Method Summary

Exception
readException()
Reads an exception thrown by a remote method invocation from an underlying stream.
Method
readMethod(Class c)
Reads a method from an underlying stream.
Object[]
readParameters()
Reads the arguments in a remote method invocation from an underlying stream.
Object
readResult()
Reads the result of a remote method invocation from an underlying stream.

Method Details

readException

public Exception readException()
            throws UnmarshalException
Reads an exception thrown by a remote method invocation from an underlying stream.

Returns:
the thrown exception.


readMethod

public Method readMethod(Class c)
            throws UnmarshalException
Reads a method from an underlying stream.

Parameters:
c - a class that declares the method.

Returns:
the method read.


readParameters

public Object[] readParameters()
            throws UnmarshalException
Reads the arguments in a remote method invocation from an underlying stream.

Returns:
the objects representing the arguments.


readResult

public Object readResult()
            throws UnmarshalException
Reads the result of a remote method invocation from an underlying stream.

Returns:
the object representing the result.