jaune.sys
Class Services

java.lang.Object
  |
  +--jaune.sys.Services

public final class Services
extends java.lang.Object

Basic services that are implemented in native code. The target platform libraries must implement these methods. Strictly speaking some of these methods may not apply to a given device, such as putchar for devices without the concept of stdout, or the concept of a calling system to exit to.


Constructor Summary
Services()
           
 
Method Summary
static int currentTimeMillis()
          Returns the time in milliseconds since an arbitrary time in the past, normally the start of execution.
static void exit(int code)
          Terminates the execution of the program, returning the given error code to the system.
static void gc()
          Runs the garbage collector.
static int getAvailableHeap()
          Returns an estimate of the available heap space in bytes.
static void putchar(int ch)
          Writes a single character to stdout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Services

public Services()
Method Detail

putchar

public static final void putchar(int ch)
Writes a single character to stdout.

exit

public static final void exit(int code)
Terminates the execution of the program, returning the given error code to the system.

currentTimeMillis

public static final int currentTimeMillis()
Returns the time in milliseconds since an arbitrary time in the past, normally the start of execution. The resolution is undefined.

gc

public static final void gc()
Runs the garbage collector.

getAvailableHeap

public static final int getAvailableHeap()
Returns an estimate of the available heap space in bytes.