img
Method
Description
static boolean
Returns true if the system proper ty specified by
getBoolean(String proper tyName)
proper tyName is true. Other wise, it returns false.
int hashCode( )
Returns the hash code for the invoking object.
static boolean parseBoolean(String str)
Returns true if str contains the string "true". Case is
not significant. Other wise, returns false.
String toString( )
Returns the string equivalent of the invoking object.
static String toString(boolean boolVal)
Returns the string equivalent of boolVal.
static Boolean valueOf(boolean boolVal)
Returns the Boolean equivalent of boolVal.
static Boolean valueOf(String boolString) Returns true if boolString contains the string "true" (in
uppercase or lowercase). Other wise, it returns false.
TABLE 16-9
The Methods Defined by Boolean (continued)
Void
The Void class has one field, TYPE, which holds a reference to the Class object for type void.
You do not create instances of this class.
Process
The abstract Process class encapsulates a process--that is, an executing program. It is used
primarily as a superclass for the type of objects created by exec( ) in the Runtime class, or
by start( ) in the ProcessBuilder class. Process contains the abstract methods shown in
Table 16-10.
Method
Description
void destroy( )
Terminates the process.
int exitValue( )
Returns an exit code obtained from a subprocess.
InputStream getErrorStream( )
Returns an input stream that reads input from the process'
err output stream.
InputStream getInputStream( )
Returns an input stream that reads input from the process'
out output stream.
OutputStream getOutputStream( )
Returns an output stream that writes output to the process'
in input stream.
int waitFor( )
Returns the exit code returned by the process. This method
throws InterruptedException
does not return until the process on which it is called
terminates.
TABLE 16-10
The Methods Defined by Process
Search WWH :
Custom Search
Previous Page
Java SE 6 Topic Index
Next Page
Java SE 6 Bookmarks
Home