Interface DynamicMethodMarshaller
- All Known Implementing Classes:
DynamicMethodMarshallerImpl
public interface DynamicMethodMarshaller
Used to read and write arguments and results for a particular method.
-
Method Summary
Modifier and TypeMethodDescriptionObject[]copyArguments(Object[] args, ORB orb) Copy the arguments as needed for this particular method.copyResult(Object result, ORB orb) Copy the result as needed for this particular method.Returns the method used to create this DynamicMethodMarshaller.booleanReturns true iff thr's class is a declared exception (or a subclass of a declared exception) for this DynamicMethodMarshaller's method.Object[]Read the arguments for this method from the InputStream.Reads an exception ID and the corresponding exception from the input stream.Read the result from the InputStream.voidwriteArguments(OutputStream os, Object[] args) Write arguments for this method to the OutputStream.voidwriteException(OutputStream os, Exception ex) Write the repository ID of the exception and the value of the exception to the OutputStream.voidwriteResult(OutputStream os, Object result) Write the result to the OutputStream.
-
Method Details
-
getMethod
Method getMethod()Returns the method used to create this DynamicMethodMarshaller. -
copyArguments
Copy the arguments as needed for this particular method. Can be optimized so that as little copying as possible is performed.- Throws:
RemoteException
-
readArguments
Read the arguments for this method from the InputStream. Returns null if there are no arguments. -
writeArguments
Write arguments for this method to the OutputStream. Does nothing if there are no arguments. -
copyResult
Copy the result as needed for this particular method. Can be optimized so that as little copying as possible is performed.- Throws:
RemoteException
-
readResult
Read the result from the InputStream. Returns null if the result type is null. -
writeResult
Write the result to the OutputStream. Does nothing if the result type is null. -
isDeclaredException
Returns true iff thr's class is a declared exception (or a subclass of a declared exception) for this DynamicMethodMarshaller's method. -
writeException
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. -
readException
Reads an exception ID and the corresponding exception from the input stream. This should be an exception declared in this method.
-