unitee.client
Class RemoteMethod

java.lang.Object
  |
  +--unitee.client.RemoteMethod

public class RemoteMethod
extends java.lang.Object

Responsible to place a remote call. Arguments are added by calling one of the add() methods.


Constructor Summary
RemoteMethod(int objectID, int methodHash)
           
RemoteMethod(int objectID, java.lang.String methodName)
           
 
Method Summary
 RemoteMethod add(boolean b)
           
 RemoteMethod add(double d)
          Adds the integer parameter to the method call.
 RemoteMethod add(int i)
           
 RemoteMethod add(long l)
           
 RemoteMethod add(java.lang.Object o)
           
 RemoteMethod add(java.io.PrintStream stream)
          Adds a print stream parameter to the method arguments.
 RemoteMethod add(Streamable s)
           
 RemoteMethod add(java.lang.String s)
           
 void call()
           
 Streamable call(Streamable s)
           
 StreamableArray call(StreamableArray array)
           
 double returnDouble()
           
 int returnInt()
           
 long returnLong()
           
 java.lang.Object returnObject()
           
 java.lang.Object returnPrimitiveArray()
           
 java.lang.String returnString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteMethod

public RemoteMethod(int objectID,
                    int methodHash)
             throws java.io.IOException

RemoteMethod

public RemoteMethod(int objectID,
                    java.lang.String methodName)
             throws java.io.IOException
Method Detail

add

public RemoteMethod add(double d)
                 throws java.io.IOException
Adds the integer parameter to the method call.
Returns:
this

add

public RemoteMethod add(int i)
                 throws java.io.IOException

add

public RemoteMethod add(long l)
                 throws java.io.IOException

add

public RemoteMethod add(boolean b)
                 throws java.io.IOException

add

public RemoteMethod add(java.lang.String s)
                 throws java.io.IOException

add

public RemoteMethod add(Streamable s)
                 throws java.io.IOException

add

public RemoteMethod add(java.lang.Object o)
                 throws java.io.IOException

add

public RemoteMethod add(java.io.PrintStream stream)
                 throws java.io.IOException
Adds a print stream parameter to the method arguments. The method registers a print stream to which output is written by the server while the method is executing.

call

public void call()
          throws java.io.IOException

call

public Streamable call(Streamable s)
                throws java.io.IOException

call

public StreamableArray call(StreamableArray array)
                     throws java.io.IOException

returnInt

public int returnInt()
              throws java.io.IOException

returnLong

public long returnLong()
                throws java.io.IOException

returnDouble

public double returnDouble()
                    throws java.io.IOException

returnString

public java.lang.String returnString()
                              throws java.io.IOException

returnPrimitiveArray

public java.lang.Object returnPrimitiveArray()
                                      throws java.io.IOException

returnObject

public java.lang.Object returnObject()
                              throws java.io.IOException