Added: harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1Runtime-members.html URL: http://svn.apache.org/viewvc/harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1Runtime-members.html?rev=724734&view=auto ============================================================================== --- harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1Runtime-members.html (added) +++ harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1Runtime-members.html Tue Dec 9 07:03:45 2008 @@ -0,0 +1,56 @@ + + +Harmony Kernel: Member List + + + + +
+ +
+
+ +
+

java.lang.Runtime Member List

This is the complete list of members for java.lang.Runtime, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
addShutdownHook(Thread hook)java.lang.Runtime
availableProcessors()java.lang.Runtime
exec(String[] progArray)java.lang.Runtime
exec(String[] progArray, String[] envp)java.lang.Runtime
exec(String[] progArray, String[] envp, File directory)java.lang.Runtime
exec(String prog)java.lang.Runtime
exec(String prog, String[] envp)java.lang.Runtime
exec(String prog, String[] envp, File directory)java.lang.Runtime
exit(int code)java.lang.Runtime
freeMemory()java.lang.Runtime
gc()java.lang.Runtime
getLocalizedInputStream(InputStream stream)java.lang.Runtime
getLocalizedOutputStream(OutputStream stream)java.lang.Runtime
getRuntime()java.lang.Runtime [static]
halt(int code)java.lang.Runtime
load(String pathName)java.lang.Runtime
loadLibrary(String libName)java.lang.Runtime
maxMemory()java.lang.Runtime
removeShutdownHook(Thread hook)java.lang.Runtime
runFinalization()java.lang.Runtime
runFinalizersOnExit(boolean run)java.lang.Runtime [static]
Runtime()java.lang.Runtime [private]
totalMemory()java.lang.Runtime
traceInstructions(boolean enable)java.lang.Runtime
traceMethodCalls(boolean enable)java.lang.Runtime


+
+ +

Genereated on Tue Dec 9 14:09:47 2008 by Doxygen.

+

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.

+
+
+ + Propchange: harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1Runtime-members.html ------------------------------------------------------------------------------ svn:eol-style = native Added: harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1Runtime.html URL: http://svn.apache.org/viewvc/harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1Runtime.html?rev=724734&view=auto ============================================================================== --- harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1Runtime.html (added) +++ harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1Runtime.html Tue Dec 9 07:03:45 2008 @@ -0,0 +1,861 @@ + + +Harmony Kernel: java.lang.Runtime Class Reference + + + + +
+ +
+
+ +
+ +

java.lang.Runtime Class Reference

+

+List of all members.


Detailed Description

+This class, with the exception of the exec() APIs, must be implemented by the VM vendor. +

+The exec() APIs must first do any required security checks, and then call org.apache.harmony.luni.internal.process.SystemProcess.create(). The Runtime interface. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

Process exec (String[] progArray) throws java.io.IOException
 Execute progArray[0] in a separate platform process The new process inherits the environment of the caller.
Process exec (String[] progArray, String[] envp) throws java.io.IOException
 Execute progArray[0] in a separate platform process The new process uses the environment provided in envp.
Process exec (String[] progArray, String[] envp, File directory) throws java.io.IOException
 Execute progArray[0] in a separate platform process.
Process exec (String prog) throws java.io.IOException
 Execute program in a separate platform process The new process inherits the environment of the caller.
Process exec (String prog, String[] envp) throws java.io.IOException
 Execute prog in a separate platform process The new process uses the environment provided in envp.
Process exec (String prog, String[] envp, File directory) throws java.io.IOException
 Execute prog in a separate platform process The new process uses the environment provided in envp.
void exit (int code)
 Causes the virtual machine to stop running, and the program to exit.
long freeMemory ()
 Answers the amount of free memory resources which are available to the running program.
void gc ()
 Indicates to the virtual machine that it would be a good time to collect available memory.
void load (String pathName)
 Loads and links the library specified by the argument.
void loadLibrary (String libName)
 Loads and links the library specified by the argument.
void runFinalization ()
 Provides a hint to the virtual machine that it would be useful to attempt to perform any outstanding object finalizations.
long totalMemory ()
 Answers the total amount of memory resources which is available to (or in use by) the running program.
void traceInstructions (boolean enable)
 Turns the output of debug information for instructions on or off.
void traceMethodCalls (boolean enable)
 Turns the output of debug information for methods on or off.
InputStream getLocalizedInputStream (InputStream stream)
OutputStream getLocalizedOutputStream (OutputStream stream)
void addShutdownHook (Thread hook)
 Registers a new virtual-machine shutdown hook.
boolean removeShutdownHook (Thread hook)
 De-registers a previously-registered virtual-machine shutdown hook.
void halt (int code)
 Causes the virtual machine to stop running, and the program to exit.
int availableProcessors ()
 Return the number of processors, always at least one.
long maxMemory ()
 Return the maximum memory that will be used by the virtual machine, or Long.MAX_VALUE.

Static Public Member Functions

static Runtime getRuntime ()
 Return the single Runtime instance.
static void runFinalizersOnExit (boolean run)
 Ensure that, when the virtual machine is about to exit, all objects are finalized.

Private Member Functions

 Runtime ()
 Prevent this class from being instantiated.
+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
java.lang.Runtime.Runtime (  )  [private]
+
+
+ +

+Prevent this class from being instantiated. +

+ +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + +
Process java.lang.Runtime.exec (String[]  progArray  )  throws java.io.IOException
+
+
+ +

+Execute progArray[0] in a separate platform process The new process inherits the environment of the caller. +

+

Parameters:
+ + +
progArray the array containing the program to execute as well as any arguments to the program.
+
+
Exceptions:
+ + + +
java.io.IOException if the program cannot be executed
SecurityException if the current SecurityManager disallows program execution
+
+
See also:
SecurityManager.checkExec
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
Process java.lang.Runtime.exec (String[]  progArray,
String[]  envp 
) throws java.io.IOException
+
+
+ +

+Execute progArray[0] in a separate platform process The new process uses the environment provided in envp. +

+

Parameters:
+ + + +
progArray the array containing the program to execute a well as any arguments to the program.
envp the array containing the environment to start the new process in.
+
+
Exceptions:
+ + + +
java.io.IOException if the program cannot be executed
SecurityException if the current SecurityManager disallows program execution
+
+
See also:
SecurityManager.checkExec
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Process java.lang.Runtime.exec (String[]  progArray,
String[]  envp,
File  directory 
) throws java.io.IOException
+
+
+ +

+Execute progArray[0] in a separate platform process. +

+The new process uses the environment provided in envp

+

Parameters:
+ + + + +
progArray the array containing the program to execute a well as any arguments to the program.
envp the array containing the environment to start the new process in.
directory the directory in which to execute progArray[0]. If null, execute in same directory as parent process.
+
+
Exceptions:
+ + + +
java.io.IOException if the program cannot be executed
SecurityException if the current SecurityManager disallows program execution
+
+
See also:
SecurityManager.checkExec
+ +
+

+ +

+
+ + + + + + + + + +
Process java.lang.Runtime.exec (String  prog  )  throws java.io.IOException
+
+
+ +

+Execute program in a separate platform process The new process inherits the environment of the caller. +

+

Parameters:
+ + +
prog the name of the program to execute
+
+
Exceptions:
+ + + +
java.io.IOException if the program cannot be executed
SecurityException if the current SecurityManager disallows program execution
+
+
See also:
SecurityManager.checkExec
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
Process java.lang.Runtime.exec (String  prog,
String[]  envp 
) throws java.io.IOException
+
+
+ +

+Execute prog in a separate platform process The new process uses the environment provided in envp. +

+

Parameters:
+ + + +
prog the name of the program to execute
envp the array containing the environment to start the new process in.
+
+
Exceptions:
+ + + +
java.io.IOException if the program cannot be executed
SecurityException if the current SecurityManager disallows program execution
+
+
See also:
SecurityManager.checkExec
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Process java.lang.Runtime.exec (String  prog,
String[]  envp,
File  directory 
) throws java.io.IOException
+
+
+ +

+Execute prog in a separate platform process The new process uses the environment provided in envp. +

+

Parameters:
+ + + + +
prog the name of the program to execute
envp the array containing the environment to start the new process in.
directory the initial directory for the subprocess, or null to use the directory of the current process
+
+
Exceptions:
+ + + +
java.io.IOException if the program cannot be executed
SecurityException if the current SecurityManager disallows program execution
+
+
See also:
SecurityManager.checkExec
+ +
+

+ +

+
+ + + + + + + + + +
void java.lang.Runtime.exit (int  code  ) 
+
+
+ +

+Causes the virtual machine to stop running, and the program to exit. +

+If runFinalizersOnExit(true) has been invoked, then all finalizers will be run first.

+

Parameters:
+ + +
code the return code.
+
+
Exceptions:
+ + +
SecurityException if the running thread is not allowed to cause the vm to exit.
+
+
See also:
SecurityManager.checkExit
+ +
+

+ +

+
+ + + + + + + + +
long java.lang.Runtime.freeMemory (  ) 
+
+
+ +

+Answers the amount of free memory resources which are available to the running program. +

+ +

+

+ +

+
+ + + + + + + + +
void java.lang.Runtime.gc (  ) 
+
+
+ +

+Indicates to the virtual machine that it would be a good time to collect available memory. +

+Note that, this is a hint only. +

+

+ +

+
+ + + + + + + + +
static Runtime java.lang.Runtime.getRuntime (  )  [static]
+
+
+ +

+Return the single Runtime instance. +

+ +

+

+ +

+
+ + + + + + + + + +
void java.lang.Runtime.load (String  pathName  ) 
+
+
+ +

+Loads and links the library specified by the argument. +

+

Parameters:
+ + +
pathName the absolute (ie: platform dependent) path to the library to load
+
+
Exceptions:
+ + + +
UnsatisfiedLinkError if the library could not be loaded
SecurityException if the library was not allowed to be loaded
+
+ +
+

+ +

+
+ + + + + + + + + +
void java.lang.Runtime.loadLibrary (String  libName  ) 
+
+
+ +

+Loads and links the library specified by the argument. +

+

Parameters:
+ + +
libName the name of the library to load
+
+
Exceptions:
+ + + +
UnsatisfiedLinkError if the library could not be loaded
SecurityException if the library was not allowed to be loaded
+
+ +
+

+ +

+
+ + + + + + + + +
void java.lang.Runtime.runFinalization (  ) 
+
+
+ +

+Provides a hint to the virtual machine that it would be useful to attempt to perform any outstanding object finalizations. +

+ +

+

+ +

+
+ + + + + + + + + +
static void java.lang.Runtime.runFinalizersOnExit (boolean  run  )  [static]
+
+
+ +

+Ensure that, when the virtual machine is about to exit, all objects are finalized. +

+Note that all finalization which occurs when the system is exiting is performed after all running threads have been terminated.

+

Parameters:
+ + +
run true means finalize all on exit.
+
+
Deprecated:
This method is unsafe.
+ +
+

+ +

+
+ + + + + + + + +
long java.lang.Runtime.totalMemory (  ) 
+
+
+ +

+Answers the total amount of memory resources which is available to (or in use by) the running program. +

+ +

+

+ +

+
+ + + + + + + + + +
void java.lang.Runtime.traceInstructions (boolean  enable  ) 
+
+
+ +

+Turns the output of debug information for instructions on or off. +

+

Parameters:
+ + +
enable if true, turn trace on. false turns trace off.
+
+ +
+

+ +

+
+ + + + + + + + + +
void java.lang.Runtime.traceMethodCalls (boolean  enable  ) 
+
+
+ +

+Turns the output of debug information for methods on or off. +

+

Parameters:
+ + +
enable if true, turn trace on. false turns trace off.
+
+ +
+

+ +

+
+ + + + + + + + + +
InputStream java.lang.Runtime.getLocalizedInputStream (InputStream  stream  ) 
+
+
+ +

+

Deprecated:
Use InputStreamReader
+ +
+

+ +

+
+ + + + + + + + + +
OutputStream java.lang.Runtime.getLocalizedOutputStream (OutputStream  stream  ) 
+
+
+ +

+

Deprecated:
Use OutputStreamWriter
+ +
+

+ +

+
+ + + + + + + + + +
void java.lang.Runtime.addShutdownHook (Thread  hook  ) 
+
+
+ +

+Registers a new virtual-machine shutdown hook. +

+

Parameters:
+ + +
hook the hook (a Thread) to register
+
+ +
+

+ +

+
+ + + + + + + + + +
boolean java.lang.Runtime.removeShutdownHook (Thread  hook  ) 
+
+
+ +

+De-registers a previously-registered virtual-machine shutdown hook. +

+

Parameters:
+ + +
hook the hook (a Thread) to de-register
+
+
Returns:
true if the hook could be de-registered
+ +
+

+ +

+
+ + + + + + + + + +
void java.lang.Runtime.halt (int  code  ) 
+
+
+ +

+Causes the virtual machine to stop running, and the program to exit. +

+Finalizers will not be run first. Shutdown hooks will not be run.

+

Parameters:
+ + +
code the return code.
+
+
Exceptions:
+ + +
SecurityException if the running thread is not allowed to cause the vm to exit.
+
+
See also:
SecurityManager.checkExit
+ +
+

+ +

+
+ + + + + + + + +
int java.lang.Runtime.availableProcessors (  ) 
+
+
+ +

+Return the number of processors, always at least one. +

+ +

+

+ +

+
+ + + + + + + + +
long java.lang.Runtime.maxMemory (  ) 
+
+
+ +

+Return the maximum memory that will be used by the virtual machine, or Long.MAX_VALUE. +

+ +

+

+


The documentation for this class was generated from the following file: +
+
+ +

Genereated on Tue Dec 9 14:09:47 2008 by Doxygen.

+

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.

+
+
+ + Propchange: harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1Runtime.html ------------------------------------------------------------------------------ svn:eol-style = native Added: harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1StackTraceElement-members.html URL: http://svn.apache.org/viewvc/harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1StackTraceElement-members.html?rev=724734&view=auto ============================================================================== --- harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1StackTraceElement-members.html (added) +++ harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1StackTraceElement-members.html Tue Dec 9 07:03:45 2008 @@ -0,0 +1,46 @@ + + +Harmony Kernel: Member List + + + + +
+ +
+
+ +
+

java.lang.StackTraceElement Member List

This is the complete list of members for java.lang.StackTraceElement, including all inherited members.

+ + + + + + + + + + + + + + + +
declaringClass (defined in java.lang.StackTraceElement)java.lang.StackTraceElement [package]
equals(Object obj)java.lang.StackTraceElement
fileName (defined in java.lang.StackTraceElement)java.lang.StackTraceElement [package]
getClassName()java.lang.StackTraceElement
getFileName()java.lang.StackTraceElement
getLineNumber()java.lang.StackTraceElement
getMethodName()java.lang.StackTraceElement
hashCode()java.lang.StackTraceElement
isNativeMethod()java.lang.StackTraceElement
lineNumber (defined in java.lang.StackTraceElement)java.lang.StackTraceElement [package]
methodName (defined in java.lang.StackTraceElement)java.lang.StackTraceElement [package]
serialVersionUID (defined in java.lang.StackTraceElement)java.lang.StackTraceElement [private, static]
StackTraceElement(String cls, String method, String file, int line)java.lang.StackTraceElement
StackTraceElement()java.lang.StackTraceElement [private]
toString()java.lang.StackTraceElement


+
+ +

Genereated on Tue Dec 9 14:09:48 2008 by Doxygen.

+

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.

+
+
+ + Propchange: harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1StackTraceElement-members.html ------------------------------------------------------------------------------ svn:eol-style = native Added: harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1StackTraceElement.html URL: http://svn.apache.org/viewvc/harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1StackTraceElement.html?rev=724734&view=auto ============================================================================== --- harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1StackTraceElement.html (added) +++ harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1StackTraceElement.html Tue Dec 9 07:03:45 2008 @@ -0,0 +1,351 @@ + + +Harmony Kernel: java.lang.StackTraceElement Class Reference + + + + +
+ +
+
+ +
+ +

java.lang.StackTraceElement Class Reference

+

+List of all members.


Detailed Description

+An implementation of this class is provided, but the documented constructor can be used by the VM specific implementation to create instances. +

+StackTraceElement represents a stack frame.

+

See also:
Throwable.getStackTrace()
+
Since:
1.4
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 StackTraceElement (String cls, String method, String file, int line)
boolean equals (Object obj)
 Compare this object with the object passed in.
String getClassName ()
 Returns the full name (i.e.
String getFileName ()
 If available, returns the name of the file containing the Java code source which was compiled into the class where this stack trace element is executing.
int getLineNumber ()
 If available, returns the line number in the source for the class where this stack trace element is executing.
String getMethodName ()
 Returns the name of the method where this stack trace element is executing.
int hashCode ()
 Return this StackTraceElement objects hash code.
boolean isNativeMethod ()
 Returns true if the method name returned by getMethodName() is implemented as a native method.
String toString ()
 Return a String representing this StackTraceElement object.

Package Attributes

+String declaringClass
+String methodName
+String fileName
+int lineNumber

Private Member Functions

 StackTraceElement ()

Static Private Attributes

+static final long serialVersionUID = 6992337162326171013L
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.StackTraceElement.StackTraceElement (String  cls,
String  method,
String  file,
int  line 
)
+
+
+ +

+Constructs a StackTraceElement for an execution point.

+

Parameters:
+ + + + + +
cls The fully qualified name of the class where execution is at.
method The name of the method where execution is at.
file The name of the file where execution is at or null.
line The line of the file where execution is at, a negative number if unknown or -2 if the execution is in a native method.
+
+
Exceptions:
+ + +
NullPointerException if cls or method is null.
+
+
Since:
1.5
+ +
+

+ +

+
+ + + + + + + + +
java.lang.StackTraceElement.StackTraceElement (  )  [private]
+
+
+ +

+Private, nullary constructor for VM use only. +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + +
boolean java.lang.StackTraceElement.equals (Object  obj  ) 
+
+
+ +

+Compare this object with the object passed in. +

+

Parameters:
+ + +
obj Object to compare with
+
+ +
+

+ +

+
+ + + + + + + + +
String java.lang.StackTraceElement.getClassName (  ) 
+
+
+ +

+Returns the full name (i.e. +

+including the package) of the class where this stack trace element is executing.

+

Returns:
the fully qualified type name of the class where this stack trace element is executing.
+ +
+

+ +

+
+ + + + + + + + +
String java.lang.StackTraceElement.getFileName (  ) 
+
+
+ +

+If available, returns the name of the file containing the Java code source which was compiled into the class where this stack trace element is executing. +

+

Returns:
if available, the name of the file containing the Java code source for the stack trace element's executing class. If no such detail is available, a null value is returned.
+ +
+

+ +

+
+ + + + + + + + +
int java.lang.StackTraceElement.getLineNumber (  ) 
+
+
+ +

+If available, returns the line number in the source for the class where this stack trace element is executing. +

+

Returns:
if available, the line number in the source file for the class where this stack trace element is executing. If no such detail is available, a number less than 0.
+ +
+

+ +

+
+ + + + + + + + +
String java.lang.StackTraceElement.getMethodName (  ) 
+
+
+ +

+Returns the name of the method where this stack trace element is executing. +

+

Returns:
the name of the method where this stack trace element is executing.
+ +
+

+ +

+
+ + + + + + + + +
int java.lang.StackTraceElement.hashCode (  ) 
+
+
+ +

+Return this StackTraceElement objects hash code. +

+

Returns:
This objects hash code
+ +
+

+ +

+
+ + + + + + + + +
boolean java.lang.StackTraceElement.isNativeMethod (  ) 
+
+
+ +

+Returns true if the method name returned by getMethodName() is implemented as a native method. +

+

Returns:
if the method in which this stack trace element is executing is a native method
+ +
+

+ +

+
+ + + + + + + + +
String java.lang.StackTraceElement.toString (  ) 
+
+
+ +

+Return a String representing this StackTraceElement object. +

+

Returns:
String representing this object
+ +
+

+


The documentation for this class was generated from the following file: +
+
+ +

Genereated on Tue Dec 9 14:09:48 2008 by Doxygen.

+

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.

+
+
+ + Propchange: harmony/standard/site/docs/externals/kernel_doc/html/classjava_1_1lang_1_1StackTraceElement.html ------------------------------------------------------------------------------ svn:eol-style = native