|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.sys.Vm
Vm contains various system level methods.
This class contains methods to copy arrays, obtain a timestamp, sleep and get platform and version information.
| Field Summary | |
static Vector |
dontGc
A Vector where you can placed objects that you don't want gc'd. |
static int |
IDABORT
|
static int |
IDCANCEL
|
static int |
IDIGNORE
|
static int |
IDNO
|
static int |
IDOK
|
static int |
IDRETRY
|
static int |
IDYES
|
static int |
MAX_TIMER_ENTRIES
Obsolete - Used with setParameter(), it sets the maximum number of combined timer/callback/coroutine entries the system can handle. |
static int |
MB_ABORTRETRYIGNORE
|
static int |
MB_APPLMODAL
|
static int |
MB_DEFBUTTON1
|
static int |
MB_DEFBUTTON2
|
static int |
MB_DEFBUTTON3
|
static int |
MB_ICONASTERISK
|
static int |
MB_ICONERROR
|
static int |
MB_ICONEXCLAMATION
|
static int |
MB_ICONHAND
|
static int |
MB_ICONINFORMATION
|
static int |
MB_ICONQUESTION
|
static int |
MB_ICONSTOP
|
static int |
MB_ICONWARNING
|
static int |
MB_OK
|
static int |
MB_OKCANCEL
|
static int |
MB_RETRYCANCEL
|
static int |
MB_SYSTEMMODAL
|
static int |
MB_TASKMODAL
|
static int |
MB_YESNO
|
static int |
MB_YESNOCANCEL
|
static int |
SET_ALWAYS_SHOW_SIP_BUTTON
Used with setParameter() and a value of 1, it tells the VM to always show the SIP button. |
static int |
SET_NO_WINDOWS
Used with setParameter() and a value of 1, it switches on simulation of single windowing. |
static int |
SIMULATE_SIP
Used with setParameter() it switches on (1) or off (0) SIP simulation for Java and ewe on the PC. |
static int |
SIP_CURRENT
|
static int |
SIP_FREEZE
|
static int |
SIP_IS_ON
|
static int |
SIP_LEAVE_BUTTON
See documentation of SetSIP() |
static int |
SIP_LOCK
See documentation of SetSIP() |
static int |
SIP_ON
See documentation of SetSIP() |
static int |
SIP_UNFREEZE
|
static int |
STANDARD_ERROR
Use with getStandardStream(). |
static int |
STANDARD_INPUT
Use with getStandardStream(). |
static int |
STANDARD_OUTPUT
Use with getStandardStream(). |
static int |
TIMER_TICK
Used with setParameter() it adjusts the minimum timer tick. |
| Method Summary | |
static boolean |
amInSystemQueue()
This checks if the current thread is being run within the System Queue. |
static void |
applicationError(String error)
Force a halt of the application due to a critical error. |
static void |
arraycopy(Object srcArray,
int srcStart,
Object dstArray,
int dstStart,
int length)
This is exactly the same as copyArray() except that it is a void method and that it mirrors the standard System.arraycopy. |
static int |
callInSystemQueue(CallBack who,
Object data)
This causes the callBack() method to be invoked on the CallBack object that will be in the OS's native message queue. |
static int |
callInSystemQueue(Window w,
CallBack who,
Object data)
This causes the callBack() method to be invoked on the CallBack object that will be in the OS's native message queue for a particular Window. |
static void |
cancelTimer(int timerId)
This cancels timer ticks for the specified timerID. |
static int |
captureAppKeys(int options)
Deprecated. use ewe.ui.Window.captureAppKeys() instead. |
static int |
changeTimer(int timerId,
TimerProc target,
int newInterval)
This cancels the current timer and then requests a new one with a new interval. |
static boolean |
copyArray(Object srcArray,
int srcStart,
Object dstArray,
int dstStart,
int length)
Copies the elements of one array to another array. |
static int |
countObjects(boolean doGCFirst)
This returns a count of allocated objects. |
static int |
createCursor(Object cursor)
Use this to create a new Mouse cursor. |
static String |
createStringWithChars(char[] chars)
Create a new String that uses the specified character array without creating a new character array for the String. |
static int |
debug(Object in,
Object out,
int options)
|
static void |
debug(String message)
Print a message on the console with no option. |
static void |
debug(String message,
int options)
Print a message on the console. |
static void |
debugObject(Object data,
int options)
|
static PrintWriter |
err()
Get a PrintWriter to standard error or to an application Console if standard error is not available (e.g. |
static Process |
exec(String command)
Execute a new process. |
static Process |
exec(String[] command)
Execute a new process. |
static Process |
exec(String[] command,
String[] env)
Execute a new process. |
static Process |
exec(String command,
String[] env)
Execute a new process. |
static int |
exec(String command,
String args,
int launchCode,
boolean wait)
Deprecated. - use exec(String [] command, String [] environment) instead |
static Process |
execEwe(String[] arguments,
String[] env)
Execute the Ewe VM with the supplied parameters. |
static Process |
execEwe(String pathToEweFile,
String args)
Execute a ".ewe" file using the installed Ewe VM. |
static boolean |
execute(String command,
String args)
Deprecated. - use exec(String [] command, String [] environment) instead |
static boolean |
executeEwe(String pathToEweFile,
String args)
Deprecated. - use execEwe() instead. |
static void |
exit(int retCode)
Exit the application. |
static void |
freezeSIP(boolean freezeOrUnfreeze,
int sipOnOrOff,
Window window)
This temporarily holds the SIP in a particular mode (open or closed) until the current event thread has completed. |
static void |
freezeSIP(Control forWho)
This will freeze the SIP in it's current state until the end of the processing of the current Event. |
static void |
gc()
Do a garbage collection. |
static PropertyList |
getAppletProperties()
This returns properties for the current Applet if it is being run as an Applet. |
static String |
getAStackTrace(Throwable th)
This gets a String representation of the full stack trace for a Throwable, but not for any of its possible chained exceptions. |
static int |
getAsyncKeyState(int keyCode)
This is used to get the pressed state of a particular key at the time the method is called. |
static Throwable |
getCause(Throwable target)
This provides a fully portable method of getting the "cause" of a Throwable for exception chaining. |
static int |
getClassMemory()
This returns the amount of class memory used in bytes. |
static String |
getClipboardText(String defaultText)
Get the text in the system clipboard. |
static String |
getFullStackTrace(Throwable th)
This gets the fully expanded stack trace for the Throwable and all chained throwables. |
static Locale |
getLocale()
Get a default locale object. |
static int |
getMessage(SystemMessage dest,
boolean peek,
boolean remove)
|
static int |
getNewId()
|
static int |
getParameter(int parameterID)
This gets paramter values. |
static String |
getPathToEweVM()
Return the path to the registered Ewe VM executable file. |
static String |
getPlatform()
Returns the platform the Virtual Machine is running under as a string. |
static String[] |
getProgramArguments()
Get the program arguments. |
static String |
getProperty(String propertyName,
String defaultValue)
This works similar to the true java.lang.System.getProperty(). |
static Object[] |
getReferencedObjects()
Return an array that contains all reachable objects. |
static int |
getSIP()
Get the state of the SIP. |
static String |
getStackTrace(Throwable th)
Get a String representation of the stack trace for a Throwable object. |
static String |
getStackTrace(Throwable t,
int lines)
Get a String representation of the stack trace for a Throwable object. |
static Stream |
getStandardStream(int which)
Return a Stream to the standard Input, Output or Error streams. |
static char[] |
getStringChars(String str)
Using the native VM this will expose the char array which represents the String. |
static Object |
getSyncObject()
This returns an object that you can synchronize with in an object "finalize()" method. |
static MemoryStatus |
getSystemMemoryStatus()
Get a MemoryStatus object representing the state of the system's physical memory. |
static int |
getTimeStamp()
Returns a time stamp in milliseconds. |
static long |
getTimeStampLong()
Returns a time stamp in milliseconds. |
static int |
getUsedMemory(boolean doGCFirst)
This returns the amount of object memory used in bytes. |
static String |
getUserName()
Returns the username of the user running the Virutal Machine. |
static int |
getVersion()
Returns the version of the Ewe Virtual Machine. |
static int |
identityHashCode(Object obj)
This returns the hashcode for the object as if the Object.hashCode() method was called regardless of any overriding hashCode() methods. |
static BufferedReader |
in()
Get a BufferedReader to standard input or to an application Console if standard input is not available (e.g. |
static boolean |
isColor()
Returns true if the system supports a color display and false otherwise. |
static boolean |
isMobile()
Returns true if this VM is running on what is considered a Mobile platform. |
static void |
load(String libraryName)
|
static void |
loadDynamicLibrary(String name)
Load a Dynamic Link Library which may have the native code for a ewe object. |
static boolean |
loadLibrary(String name)
Deprecated. use loadDynamicLibrary() instead. |
static int |
loadResourceOrFile(String path,
ByteArray dest)
Deprecated. |
static Task |
makeBlockingTask(CallBack cb)
Create a Task that can call a full system blocking method without blocking the VM. |
static RandomAccessStream |
memoryMapFile(String path,
String mode,
int options)
Memory map, if possible, a file on disk for later reading and possibly writing. |
static int |
messageBox(String caption,
String text,
int type)
This causes a "native" message box to be displayed - halting ewe programs until the user dismisses it. |
static String |
mutateString(String str,
char[] newChars,
int start,
int length,
boolean useThisArray)
|
protected static boolean |
nativeLoadLibrary(String dllName)
|
static File |
newFileObject()
Get a new ewe.io.File object which can be used to represent a file on the file system being used by the VM. |
static RandomAccessStream |
openRandomAccessStream(String path,
int mode)
Deprecated. user the other openRandomAccessStream() instead. |
static RandomAccessStream |
openRandomAccessStream(String path,
String mode)
This will attempt to provide a RandomAccessStream which can be used to read from a resource that is either stored in a ewe file, or resides on a sever (for Applet versions) or is a File. |
static Stream |
openResource(Class aClass,
String resourceName)
This will attempt to open a class dependant resource for reading. |
static PrintWriter |
out()
Get a PrintWriter to standard output or to an application Console if standard output is not available (e.g. |
static int |
playSound(String sound,
int options)
Deprecated. use SoundClip instead. |
static void |
preloadVM(boolean doLoad)
This tells the VM to pre-load the VM or to unload the VM. |
static void |
printStackTrace(Throwable th,
PrintWriter out)
|
static byte[] |
readResource(Class aClass,
String resourceName)
This opens a Stream to a resource using openResource and then reads in all the bytes. |
static int |
readResource(String fileName,
String resourceName,
int options)
Deprecated. |
static int |
releaseResource(String resourceName)
Deprecated. |
static int |
requestTick(TimerProc target,
int interval,
boolean repeat)
Request a timer tick to be sent to the TimerProc target. |
static int |
requestTimer(TimerProc target,
int interval)
Request a timer tick to be sent to the TimerProc target. |
static boolean |
runEweVM(String args)
Deprecated. - use execEwe() instead. |
static Handle |
runNativeDialog(Task nativeDialogTask)
Run a task that will display a native dialog box of some kind while it runs. |
static Throwable |
setCause(Throwable target,
Throwable cause)
This provides a fully portable method of setting the "cause" of a Throwable for exception chaining. |
static void |
setClipboardText(String text)
Sets the system clipboard text. |
static int |
setCursor(Control c,
int type)
|
static int |
setCursor(int type)
Set the cursor. |
static int |
setDeviceAutoOff(int seconds)
Sets the device's "auto-off" time. |
static void |
setFileObject(File fileObject)
Set the File object to be used to represent the local file system. |
static int |
setParameter(int ParameterId,
int value)
This sets VM parameters. |
static boolean |
setProperty(String propertyName,
String value)
This only has an effect on the running program. |
static void |
setSIP(int mode)
This turns the SIP on PalmPC/PocketPC devices. |
static void |
setSIP(int mode,
Window forWindow)
This turns the SIP on PalmPC/PocketPC devices. |
static void |
showWait(boolean show)
|
static void |
showWait(Control c,
boolean show)
|
static void |
sleep(int millis)
Causes the VM to pause execution for the given number of milliseconds. |
static String[] |
splitCommand(String args,
String prepend)
|
static void |
startEwe(String[] programArguments)
This is used to start the Ewe library running from a static main() method. |
static void |
startEwe(String[] programArguments,
String startClassName)
This is used to start the Ewe library running from a static main() method. |
static int |
toInt(Object obj)
Deprecated. See identityHashCode() |
static void |
useConsoleForIO()
This tells the VM to use the application Console for out(), in() and err() instead of standard output, input and error (if they exist). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
public static final int STANDARD_INPUT
public static final int STANDARD_OUTPUT
public static final int STANDARD_ERROR
public static final int SIP_ON
public static final int SIP_LEAVE_BUTTON
public static final int SIP_LOCK
public static final int SIP_CURRENT
public static final int SIP_FREEZE
public static final int SIP_UNFREEZE
public static final int SIP_IS_ON
public static final int MB_OK
public static final int MB_OKCANCEL
public static final int MB_ABORTRETRYIGNORE
public static final int MB_YESNOCANCEL
public static final int MB_YESNO
public static final int MB_RETRYCANCEL
public static final int MB_ICONHAND
public static final int MB_ICONQUESTION
public static final int MB_ICONEXCLAMATION
public static final int MB_ICONASTERISK
public static final int MB_ICONWARNING
public static final int MB_ICONERROR
public static final int MB_ICONINFORMATION
public static final int MB_ICONSTOP
public static final int MB_DEFBUTTON1
public static final int MB_DEFBUTTON2
public static final int MB_DEFBUTTON3
public static final int MB_APPLMODAL
public static final int MB_SYSTEMMODAL
public static final int MB_TASKMODAL
public static final int IDOK
public static final int IDCANCEL
public static final int IDABORT
public static final int IDRETRY
public static final int IDIGNORE
public static final int IDYES
public static final int IDNO
public static final int TIMER_TICK
public static final int SIMULATE_SIP
public static final int SET_NO_WINDOWS
public static final int SET_ALWAYS_SHOW_SIP_BUTTON
public static final int MAX_TIMER_ENTRIES
public static Vector dontGc
| Method Detail |
public static PrintWriter out()
public static BufferedReader in()
public static PrintWriter err()
public static void useConsoleForIO()
public static boolean copyArray(Object srcArray,
int srcStart,
Object dstArray,
int dstStart,
int length)
srcArray - the array to copy elements fromsrcStart - the starting position in the source arraydstArray - the array to copy elements todstStart - the starting position in the destination arraylength - the number of elements to copy
public static void arraycopy(Object srcArray,
int srcStart,
Object dstArray,
int dstStart,
int length)
public static boolean isColor()
public static void preloadVM(boolean doLoad)
public static int getTimeStamp()
public static long getTimeStampLong()
Because of the arbitray nature of the initial value you should only use getTimeStampLong() for calculating differences between calls to getTimeStampLong()
public static String getPlatform()
public static String getUserName()
public static int getVersion()
public static int exec(String command,
String args,
int launchCode,
boolean wait)
As an example, the following call could be used to run the command "scandir /p mydir" under Java, Win32 or WinCE:
int result = Vm.exec("scandir", "/p mydir", 0, true);
This example executes the Scribble program under PalmOS:
Vm.exec("Scribble", null, 0, false);
The args parameter passed to this method is the arguments string
to pass to the program being executed.
The launchCode parameter is only used under PalmOS. Under PalmOS, it is the launch code value to use when the Vm calls SysUIAppSwitch(). If 0 is passed, the default launch code (CmdNormalLaunch) is used to execute the program.
The wait parameter passed to this method determines whether to execute the command asynchronously. If false, then the method will return without waiting for the command to complete execution. If true, the method will wait for the program to finish executing and the return value of the method will be the value returned from the application under Java, Win32 and WinCE.
command - the command to executeargs - command argumentslaunchCode - launch code for PalmOS applicationswait - whether to wait for the command to complete execution before returning
public static boolean execute(String command,
String args)
command - The full path to the executable file. Don't put quotes within it.args - Program arguments.
public static String[] splitCommand(String args,
String prepend)
public static Process exec(String[] command,
String[] env)
throws IOException
command - The command and argument list. The first command must be the command to execute.env - A new set of environment variables to use for the execution. Each must be in the form "name=value".
this parameter can be null.
IOException - if an error occurs while attempting to execute the program.
public static Process exec(String command,
String[] env)
throws IOException
command - The command and argument list as a single string. This will be split up using spaces as a separator and the resulting
String array is then passed to exec(String [] command,String [] env). The first command must be the command to execute.env - A new set of environment variables to use for the execution. Each must be in the form "name=value".
this parameter can be null.
IOException - if an error occurs while attempting to execute the program.
public static Process exec(String[] command)
throws IOException
command - The command and argument list. The first command must be the command to execute.
IOException - if an error occurs while attempting to execute the program.
public static Process exec(String command)
throws IOException
command - The command and argument list as a single string. This will be split up using spaces as a separator and the resulting
String array is then passed to exec(String [] command,String [] env). The first command must be the command to execute.
IOException - if an error occurs while attempting to execute the program.
public static Process execEwe(String pathToEweFile,
String args)
throws IOException
pathToEweFile - args - Additional application arguments.
IOException - If the Ewe VM could not be executed.
public static Process execEwe(String[] arguments,
String[] env)
throws IOException
arguments - An argument list for the VM. The first command must be the command to execute.env - A new set of environment variables to use for the execution. Each must be in the form "name=value".
this parameter can be null.
IOException - If the Ewe VM could not be executed.public static String getPathToEweVM()
public static boolean executeEwe(String pathToEweFile,
String args)
pathToEweFile - The full path to the ".ewe" file.args - Optional additional arguments for the application.
public static boolean runEweVM(String args)
args - The full argument list for the VM.
public static int setDeviceAutoOff(int seconds)
public static void sleep(int millis)
millis - time to sleep in milliseconds
public static void setSIP(int mode,
Window forWindow)
mode - a combination of the following
bit flags.public static void setSIP(int mode)
mode - a combination of the following
bit flags.
public static void freezeSIP(boolean freezeOrUnfreeze,
int sipOnOrOff,
Window window)
freezeOrUnfreeze - true to freeze the SIP either on (if sipOnOrOff is SIP_ON) or off (if sipOnOrOff is 0).
Set to false to unfreeze the SIP. This is done automatically at the end of the current event thread.sipOnOrOff - This is only valid if freezeOrUnfreeze is true, in which case it tells if the SIP should be open
(SIP_ON) or closed (0).window - The window of the control that is changing the SIP.public static void freezeSIP(Control forWho)
public static int getSIP()
public static int playSound(String sound,
int options)
sound - The name of the .wav sound to play.options - One of the SND_ variables.
public static int getAsyncKeyState(int keyCode)
keyCode - One of the ewe.ui.IKeys constants.
IKeyspublic static int captureAppKeys(int options)
options - A value of 1 causes WinCE to capture the keys. A value of 0 cause WinCE to
release the keys.
public static int messageBox(String caption,
String text,
int type)
public static int getParameter(int parameterID)
public static boolean isMobile()
public static int setParameter(int ParameterId,
int value)
ParameterId - Currently only the value VM_FLAGS is supported.value - The new value to set.
public static void showWait(Control c,
boolean show)
public static void showWait(boolean show)
public static int setCursor(int type)
public static int setCursor(Control c,
int type)
public static int createCursor(Object cursor)
public static int getNewId()
public static int requestTick(TimerProc target,
int interval,
boolean repeat)
target - The TimerProc object to receive the ticks.interval - The time in milliseconds.repeat - true if the timer should receive ticks at regular intervals until cancelTimer is called.
public static int requestTimer(TimerProc target,
int interval)
public static void cancelTimer(int timerId)
public static int changeTimer(int timerId,
TimerProc target,
int newInterval)
public static int getMessage(SystemMessage dest,
boolean peek,
boolean remove)
public static int callInSystemQueue(Window w,
CallBack who,
Object data)
who - The CallBack object.data - Optional data to send.
public static int callInSystemQueue(CallBack who,
Object data)
who - The CallBack object.data - Optional data to send.
public static boolean amInSystemQueue()
public static int readResource(String fileName,
String resourceName,
int options)
fileName - resourceName - options -
public static int releaseResource(String resourceName)
resourceName -
public static int loadResourceOrFile(String path,
ByteArray dest)
This method has been deprecated. Instead use openResource() or readResource().
public static void gc()
public static boolean loadLibrary(String name)
name - The name of the library - do NOT include ".dll" or ".so"
public static void loadDynamicLibrary(String name)
throws SecurityException,
UnsatisfiedLinkError
name - The name of the library - do NOT include ".dll" or ".so"
SecurityException
UnsatisfiedLinkError
public static void load(String libraryName)
throws SecurityException,
UnsatisfiedLinkError
SecurityException
UnsatisfiedLinkError
public static void setFileObject(File fileObject)
throws SecurityException
fileObject - the File object to be used to represent the local file system.
SecurityException - If the security system does not allow this. Currently
this operation is not allowed to be done more than once.public static File newFileObject()
protected static boolean nativeLoadLibrary(String dllName)
public static Locale getLocale()
public static void applicationError(String error)
public static char[] getStringChars(String str)
Use this with care! If you write into it using the native VM you will change the String which is SUPPOSED to be immutable. Under a JavaVM this will return a COPY of the string arrays.
public static String createStringWithChars(char[] chars)
Use this with care. After creating the String you may be able to change it since you may have direct access to the String's characters. However under some systems (e.g. Java) this method may allocate a new copy of the array so do not assume that the provided character array will be used directly.
public static String mutateString(String str,
char[] newChars,
int start,
int length,
boolean useThisArray)
public static void debug(String message,
int options)
public static void debugObject(Object data,
int options)
public static int debug(Object in,
Object out,
int options)
public static void debug(String message)
public static int countObjects(boolean doGCFirst)
public static Object[] getReferencedObjects()
public static int getUsedMemory(boolean doGCFirst)
doGCFirst - Set this true if you want a gc() to be called first.
public static int getClassMemory()
public static RandomAccessStream memoryMapFile(String path,
String mode,
int options)
throws UnsupportedOperationException,
SystemResourceException,
IOException,
IllegalArgumentException
path - the path to the file.mode - must be either "r" for read-only access and "rw" for read-write access.options - any of the MEMORY_MAP_XXX values ORed together.
UnsupportedOperationException - if Memory Mapping is not supported
or if the mode requested is not supported or if options requested could not be
supported and MEMORY_MAP_STRICT was specified.
SystemResourceException - if there is not enough system resources to memory map.
FileNotFoundException - if the file was not found.
IOException - if there was an IO error mapping the file.
IllegalArgumentException - if the mode is not "r" or "rw".
public static RandomAccessStream openRandomAccessStream(String path,
String mode)
throws IOException,
IllegalArgumentException
path - The path to the resource or file.mode - Either "r" or "rw".
IOException - if an error occured accessing the resource.
IllegalArgumentException - if the mode is not "r" or "rw".
public static RandomAccessStream openRandomAccessStream(String path,
int mode)
path - The path to the resource or file.mode - One of the RandomAccessStream constants: READ_ONLY or READ_WRITE
public static Stream openResource(Class aClass,
String resourceName)
aClass - The class requesting the resource. If it is null it will assume that it is a standard application resource.resourceName - The name of the resource.
public static byte[] readResource(Class aClass,
String resourceName)
aClass - The class requesting the resource. If it is null it will assume that it is a standard application resource.resourceName - The name of the resource.
public static void setClipboardText(String text)
text - New text to place in clipboard.public static String getClipboardText(String defaultText)
defaultText - Text to return if there is no text in the system clipboard.
public static String[] getProgramArguments()
public static int toInt(Object obj)
obj - The object.
public static int identityHashCode(Object obj)
obj - The object.
public static PropertyList getAppletProperties()
The available properties will be:
applet - The Applet object itself.
hostName - A string representing the host computer name.
hostPort - A string representing the host computer port.
codeBase - A string giving the codebase of the applet.
documentBase - A string giving the documentbase of the applet.
public static String getAStackTrace(Throwable th)
th - The Throwable
public static String getStackTrace(Throwable th)
th - The throwable object.
public static void printStackTrace(Throwable th,
PrintWriter out)
public static String getFullStackTrace(Throwable th)
th - The throwable.
public static Throwable setCause(Throwable target,
Throwable cause)
throws IllegalArgumentException,
IllegalStateException
target - The target Throwable.cause - The cause for the target.
IllegalArgumentException - If the cause is the same as the target.
IllegalStateException - If the cause for the target has already been set.public static Throwable getCause(Throwable target)
target - The target Throwable.
public static String getStackTrace(Throwable t,
int lines)
t - The throwable object.lines - The number of lines to retrieve. If lines <= 0 then all lines will be retrieved
public static Object getSyncObject()
public static String getProperty(String propertyName,
String defaultValue)
public static boolean setProperty(String propertyName,
String value)
public static void exit(int retCode)
retCode - The return code.
public static void startEwe(String[] programArguments,
String startClassName)
public static void startEwe(String[] programArguments)
public static Stream getStandardStream(int which)
which - one of STANDARD_INPUT, STANDARD_OUTPUT or STANDARD_ERROR
public static MemoryStatus getSystemMemoryStatus()
public static Task makeBlockingTask(CallBack cb)
The task should be implemented in a CallBack Object, where the callBack(Object data) method will hold the blocking code and the "data" parameter will be a Handle that the task can use to set the status of the task.
public static Handle runNativeDialog(Task nativeDialogTask)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||