com.eaio.nativecall
Class IntCall

java.lang.Object
  |
  +--com.eaio.nativecall.NativeCall
        |
        +--com.eaio.nativecall.IntCall

public class IntCall
extends NativeCall

An IntCall instance encapsulates an operating system method that returns an integer.

Author:
Johann Burkard

Constructor Summary
IntCall(String function)
          Constructor for IntCall.
IntCall(String module, String function)
          Constructor for IntCall.
 
Method Summary
 boolean executeBooleanCall()
          Returns false if calling executeCall() returned 0, true otherwise.
 boolean executeBooleanCall(Object param)
          Returns false if calling executeCall(Object) returned 0, true otherwise.
 boolean executeBooleanCall(Object[] params)
          Returns false if calling executeCall(Object[]) returned 0, true otherwise.
 int executeCall()
          Calls the function, returning its output.
 int executeCall(Object param)
          Calls the function using the given parameter.
 int executeCall(Object[] params)
          Calls the function using the given parameters.
 
Methods inherited from class com.eaio.nativecall.NativeCall
check, checkParam, destroy, equals, finalize, getLastError, getLastErrorCode, hashCode, init, toString, toStringBuffer
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntCall

public IntCall(String function)
        throws SecurityException,
               IllegalArgumentException,
               NullPointerException
Constructor for IntCall.

See Also:
NativeCall.NativeCall(String)

IntCall

public IntCall(String module,
               String function)
        throws SecurityException,
               IllegalArgumentException,
               NullPointerException
Constructor for IntCall.

See Also:
NativeCall.NativeCall(String, String)
Method Detail

executeBooleanCall

public boolean executeBooleanCall()
Returns false if calling executeCall() returned 0, true otherwise.

Updates the error code field. See NativeCall.getLastError().

Returns:
true or false

executeBooleanCall

public boolean executeBooleanCall(Object param)
Returns false if calling executeCall(Object) returned 0, true otherwise.

Updates the error code field. See NativeCall.getLastError().

Parameters:
param - the parameter, may be null
Returns:
true or false
See Also:
executeBooleanCall(Object[])

executeBooleanCall

public boolean executeBooleanCall(Object[] params)
Returns false if calling executeCall(Object[]) returned 0, true otherwise.

Updates the error code field. See NativeCall.getLastError().

During this operation, the contents of the array might be changed.

Parameters:
params - the parameter array, may be null
Returns:
true or false

executeCall

public int executeCall()
Calls the function, returning its output.

Updates the error code field. See NativeCall.getLastError().

Returns:
an int

executeCall

public int executeCall(Object param)
Calls the function using the given parameter.

Updates the error code field. See NativeCall.getLastError().

Parameters:
param - the parameter, may be null
Returns:
an int
See Also:
executeCall(Object[])

executeCall

public int executeCall(Object[] params)
Calls the function using the given parameters.

Updates the error code field. See NativeCall.getLastError().

During this operation, the contents of the array might be changed.

Parameters:
params - the parameter array, may be null
Returns:
an int