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