org.objectweb.jeremie.apis.presentation
Interface JRMIUnMarshaller

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

public interface JRMIUnMarshaller
extends UnMarshaller

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


Method Summary
 java.lang.Exception readException()
          Reads an exception thrown by a remote method invocation from an underlying stream.
 java.lang.reflect.Method readMethod(java.lang.Class c)
          Reads a method from an underlying stream.
 java.lang.Object[] readParameters()
          Reads the arguments in a remote method invocation from an underlying stream.
 java.lang.Object readResult()
          Reads the result of a remote method invocation from an underlying stream.
 
Methods inherited from interface org.objectweb.jonathan.apis.presentation.UnMarshaller
bytesRead, close, getContext, inputStream, isLittleEndian, readBoolean, readByte, readByteArray, readChar16, readChar8, readDouble, readFloat, readInt, readLong, readReference, readShort, readString16, readString8, readValue, setByteOrder, setSize
 

Method Detail

readMethod

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

Parameters:
c - a class that declares the method.
Returns:
the method read.
Throws:
java.rmi.UnmarshalException - if something goes wrong.

readParameters

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

Returns:
the objects representing the arguments.
Throws:
java.rmi.UnmarshalException - if something goes wrong.

readResult

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

Returns:
the object representing the result.
Throws:
java.rmi.UnmarshalException - if something goes wrong.

readException

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

Returns:
the thrown exception.
Throws:
java.rmi.UnmarshalException - if something goes wrong.