org.objectweb.jeremie.presentation.api
Interface JRMIMarshaller
- Marshaller
- StdMarshallerFactory.StdMarshaller, StdMarshallerFactory.StdMarshallerL
public interface JRMIMarshaller
extends Marshaller
A JRMIMarshaller provides a high-level encoding-independent interface
for marshalling remote method invocations.
void | writeException(Exception e) - Writes an exception thrown by a remote method invocation to an underlying
stream.
|
void | writeMethod(Method m) - Writes the method in a remote method invocation to an underlying stream.
|
void | writeParameters(Object[] p) - Writes the arguments in a remote method invocation to an underlying stream.
|
void | writeResult(Object o) - Writes the result of a remote method invocation to an underlying stream.
|
writeException
public void writeException(Exception e)
throws MarshalException
Writes an exception thrown by a remote method invocation to an underlying
stream.
e
- the thrown exception.
writeMethod
public void writeMethod(Method m)
throws MarshalException
Writes the method in a remote method invocation to an underlying stream.
m
- the method to be written.
writeParameters
public void writeParameters(Object[] p)
throws MarshalException
Writes the arguments in a remote method invocation to an underlying stream.
p
- the objects representing the arguments.
writeResult
public void writeResult(Object o)
throws MarshalException
Writes the result of a remote method invocation to an underlying stream.
o
- the object representing the result.