com.syncbuilder.sync
Class RPCParam

java.lang.Object
  |
  +--com.syncbuilder.sync.RPCParam

public class RPCParam
extends java.lang.Object

Represents a parameter for an RPC-call. Also contains factory-methods to create such parameters.

Caution! RPC is extremely low-level and has a great potential to crash your Palm device, which may result in loss of data!

See Also:
Dlp.processRPC(int, com.syncbuilder.util.Index, com.syncbuilder.util.Index, com.syncbuilder.sync.RPCParam[])

Method Summary
 byte[] getBytes()
          Return the raw bytes of the parameter.
 Char4 getChar4()
          Return the 4 character value of the parameter.
 int getLong()
          Return the long value of the parameter.
 int getShort()
          Return the short value of the parameter.
 int getSize()
          Return the size of the parameters in bytes.
 boolean isRef()
          Return whether this parameter is a placeholder for a return value.
static RPCParam makeChar4(Char4 value)
          Factory-method to create a 4 character parameter (e.g. creator id, type)
static RPCParam makeChar4Ref()
          Factory-method to create a 4 character return-parameter
static RPCParam makeLong(int value)
          Factory-method to create a long parameter
static RPCParam makeLongRef()
          Factory-method to create a long return-parameter
static RPCParam makeShort(int value)
          Factory-method to create a short parameter
static RPCParam makeShortRef()
          Factory-method to create a short return-parameter
static RPCParam makeStringRef(int n)
          Factory-method to create an n character return-parameter
static RPCParam makeStringRef(java.lang.String text, int n)
          Factory-method to create an n character return-parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeShort

public static RPCParam makeShort(int value)
Factory-method to create a short parameter

makeLong

public static RPCParam makeLong(int value)
Factory-method to create a long parameter

makeChar4

public static RPCParam makeChar4(Char4 value)
Factory-method to create a 4 character parameter (e.g. creator id, type)

makeShortRef

public static RPCParam makeShortRef()
Factory-method to create a short return-parameter

makeLongRef

public static RPCParam makeLongRef()
Factory-method to create a long return-parameter

makeChar4Ref

public static RPCParam makeChar4Ref()
Factory-method to create a 4 character return-parameter

makeStringRef

public static RPCParam makeStringRef(int n)
Factory-method to create an n character return-parameter

makeStringRef

public static RPCParam makeStringRef(java.lang.String text,
                                     int n)
Factory-method to create an n character return-parameter

getShort

public int getShort()
Return the short value of the parameter.

getLong

public int getLong()
Return the long value of the parameter.

getChar4

public Char4 getChar4()
Return the 4 character value of the parameter.

getBytes

public byte[] getBytes()
Return the raw bytes of the parameter.

getSize

public int getSize()
Return the size of the parameters in bytes.

isRef

public boolean isRef()
Return whether this parameter is a placeholder for a return value.


This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.