public class DynamicMethodMarshallerImpl extends Object implements DynamicMethodMarshaller
| Modifier and Type | Class and Description |
|---|---|
static interface |
DynamicMethodMarshallerImpl.ReaderWriter |
| Constructor and Description |
|---|
DynamicMethodMarshallerImpl(Method method) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
copyArguments(Object[] args,
ORB orb)
Copy the arguments as needed for this particular method.
|
Object |
copyResult(Object result,
ORB orb)
Copy the result as needed for this particular method.
|
Method |
getMethod()
Returns the method used to create this DynamicMethodMarshaller.
|
boolean |
isDeclaredException(Throwable thr)
Returns true iff thr's class is a declared exception (or a subclass of
a declared exception) for this DynamicMethodMarshaller's method.
|
static DynamicMethodMarshallerImpl.ReaderWriter |
makeReaderWriter(Class cls) |
Object[] |
readArguments(InputStream is)
Read the arguments for this method from the InputStream.
|
Exception |
readException(ApplicationException ae)
Reads an exception ID and the corresponding exception from
the input stream.
|
Object |
readResult(InputStream is)
Read the result from the InputStream.
|
void |
writeArguments(OutputStream os,
Object[] args)
Write arguments for this method to the OutputStream.
|
void |
writeException(OutputStream os,
Exception ex)
Write the repository ID of the exception and the value of the
exception to the OutputStream.
|
void |
writeResult(OutputStream os,
Object result)
Write the result to the OutputStream.
|
public DynamicMethodMarshallerImpl(Method method)
public static DynamicMethodMarshallerImpl.ReaderWriter makeReaderWriter(Class cls)
public Method getMethod()
DynamicMethodMarshallergetMethod in interface DynamicMethodMarshallerpublic Object[] copyArguments(Object[] args, ORB orb) throws RemoteException
DynamicMethodMarshallercopyArguments in interface DynamicMethodMarshallerRemoteExceptionpublic Object[] readArguments(InputStream is)
DynamicMethodMarshallerreadArguments in interface DynamicMethodMarshallerpublic void writeArguments(OutputStream os, Object[] args)
DynamicMethodMarshallerwriteArguments in interface DynamicMethodMarshallerpublic Object copyResult(Object result, ORB orb) throws RemoteException
DynamicMethodMarshallercopyResult in interface DynamicMethodMarshallerRemoteExceptionpublic Object readResult(InputStream is)
DynamicMethodMarshallerreadResult in interface DynamicMethodMarshallerpublic void writeResult(OutputStream os, Object result)
DynamicMethodMarshallerwriteResult in interface DynamicMethodMarshallerpublic boolean isDeclaredException(Throwable thr)
DynamicMethodMarshallerisDeclaredException in interface DynamicMethodMarshallerpublic void writeException(OutputStream os, Exception ex)
DynamicMethodMarshallerwriteException in interface DynamicMethodMarshallerpublic Exception readException(ApplicationException ae)
DynamicMethodMarshallerreadException in interface DynamicMethodMarshallerCopyright © 2018 JBoss by Red Hat. All rights reserved.