com.eaio.nativecall
Class VoidCall

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

public class VoidCall
extends NativeCall

A VoidCall instance encapsulates an operating system method that returns nothing.

Author:
Johann Burkard

Constructor Summary
VoidCall(String function)
          Constructor for VoidCall.
VoidCall(String module, String function)
          Constructor for VoidCall.
 
Method Summary
 void executeCall()
          Calls the function.
 void executeCall(Object param)
          Calls the function using the given parameter.
 void 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

VoidCall

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

See Also:
NativeCall.NativeCall(String)

VoidCall

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

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

executeCall

public void executeCall()
Calls the function.

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


executeCall

public void 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
See Also:
executeCall(Object[])

executeCall

public void 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