FileDocCategorySizeDatePackage
DynamicMethodMarshaller.javaAPI DocJava SE 5 API2534Fri Aug 26 14:54:40 BST 2005com.sun.corba.se.spi.presentation.rmi

DynamicMethodMarshaller

public interface DynamicMethodMarshaller
Used to read and write arguments and results for a particular method.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Object[]copyArguments(java.lang.Object[] args, com.sun.corba.se.spi.orb.ORB orb)
Copy the arguments as needed for this particular method. Can be optimized so that as little copying as possible is performed.

public java.lang.ObjectcopyResult(java.lang.Object result, com.sun.corba.se.spi.orb.ORB orb)
Copy the result as needed for this particular method. Can be optimized so that as little copying as possible is performed.

public java.lang.reflect.MethodgetMethod()
Returns the method used to create this DynamicMethodMarshaller.

public booleanisDeclaredException(java.lang.Throwable thr)
Returns true iff thr's class is a declared exception (or a subclass of a declared exception) for this DynamicMethodMarshaller's method.

public java.lang.Object[]readArguments(org.omg.CORBA_2_3.portable.InputStream is)
Read the arguments for this method from the InputStream. Returns null if there are no arguments.

public java.lang.ExceptionreadException(org.omg.CORBA.portable.ApplicationException ae)
Reads an exception ID and the corresponding exception from the input stream. This should be an exception declared in this method.

public java.lang.ObjectreadResult(org.omg.CORBA_2_3.portable.InputStream is)
Read the result from the InputStream. Returns null if the result type is null.

public voidwriteArguments(org.omg.CORBA_2_3.portable.OutputStream os, java.lang.Object[] args)
Write arguments for this method to the OutputStream. Does nothing if there are no arguments.

public voidwriteException(org.omg.CORBA_2_3.portable.OutputStream os, java.lang.Exception ex)
Write the repository ID of the exception and the value of the exception to the OutputStream. ex should be a declared exception for this DynamicMethodMarshaller's method.

public voidwriteResult(org.omg.CORBA_2_3.portable.OutputStream os, java.lang.Object result)
Write the result to the OutputStream. Does nothing if the result type is null.