unitee.common
Class UniteeProtocol
java.lang.Object
|
+--unitee.common.UniteeProtocol
- public class UniteeProtocol
- extends java.lang.Object
Defines the protocol constants used to interact with a UniteeServer ,
mostly to invoke remote methods.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
UNITEE_SERVER_PORT
public static final int UNITEE_SERVER_PORT
INVOKE_METHOD
public static final byte INVOKE_METHOD
DISCONNECT
public static final byte DISCONNECT
METHOD_NAME
public static final byte METHOD_NAME
METHOD_HASH
public static final byte METHOD_HASH
CHARACTER
public static final byte CHARACTER
SHORT
public static final byte SHORT
BOOLEAN
public static final byte BOOLEAN
INTEGER
public static final byte INTEGER
LONG
public static final byte LONG
FLOAT
public static final byte FLOAT
DOUBLE
public static final byte DOUBLE
VOID
public static final byte VOID
STRING
public static final byte STRING
OBJECT
public static final byte OBJECT
PRINT_STREAM
public static final byte PRINT_STREAM
NULL
public static final byte NULL
ARRAY
public static final byte ARRAY
- The data is as follows.
1 dimentional array:
...
<3><12345><789><111>
<3>
CLASS
public static final byte CLASS
classes
public static final java.lang.Class[] classes
OK
public static final byte OK
INVALID_REQUEST
public static final byte INVALID_REQUEST
OBJECT_NOT_FOUND
public static final byte OBJECT_NOT_FOUND
METHOD_NOT_FOUND
public static final byte METHOD_NOT_FOUND
EXCEPTION
public static final byte EXCEPTION
UniteeProtocol
public UniteeProtocol()
isPrimitive
public static boolean isPrimitive(int classIndex)
isPrimitive
public static boolean isPrimitive(java.lang.Class c)
getClassIndex
public static byte getClassIndex(java.lang.Class c)
getMethodHash
public static int getMethodHash(java.lang.reflect.Method method)
writeObject
public static void writeObject(java.io.DataOutputStream output,
java.lang.Object value,
java.lang.Class type,
ObjectRepository repository)
throws java.io.IOException
readObject
public static StreamableArray readObject(java.io.DataInputStream input,
StreamableArray array)
throws java.io.IOException
readObject
public static Streamable readObject(java.io.DataInputStream input,
Streamable s)
throws java.io.IOException
readObject
public static java.lang.Object readObject(java.io.DataInputStream input)
throws java.io.IOException
readObject
public static java.lang.Object readObject(java.io.DataInputStream input,
int classIndex,
java.io.OutputStream clientOutputStream)
throws java.io.IOException