org.objectweb.jeremie.presentation.api
Interface JRMIUnMarshaller

All Superinterfaces:
org.objectweb.jonathan.presentation.api.UnMarshaller
All Known Implementing Classes:
StdMarshallerFactory.StdUnMarshaller, StdMarshallerFactory.StdUnMarshallerD

public interface JRMIUnMarshaller
extends org.objectweb.jonathan.presentation.api.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.
 
Methods inherited from interface org.objectweb.jonathan.presentation.api.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

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.
Throws:
UnmarshalException - if something goes wrong.

readParameters

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

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

readResult

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

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

readException

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

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