org.netbeans.bootstrap/1 2.52

org.netbeans
Class CLIHandler.Args

java.lang.Object
  extended by org.netbeans.CLIHandler.Args
Enclosing class:
CLIHandler

public static final class CLIHandler.Args
extends Object

Class that represents available arguments to the CLI handlers.


Method Summary
 String[] getArguments()
          Get the command-line arguments.
 File getCurrentDirectory()
           
 OutputStream getErrorStream()
          Access to error stream.
 InputStream getInputStream()
          Get an input stream that may supply additional data.
 OutputStream getOutputStream()
          Get an output stream to which data may be sent.
 boolean isOpen()
          Is open? True if the connection is still alive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getArguments

public String[] getArguments()
Get the command-line arguments. You may not modify the returned array except to set some elements to null as you recognize them.

Returns:
array of string arguments, may contain nulls

getOutputStream

public OutputStream getOutputStream()
Get an output stream to which data may be sent.

Returns:
stream to write to

getErrorStream

public OutputStream getErrorStream()
Access to error stream.

Returns:
the stream to write error messages to

getCurrentDirectory

public File getCurrentDirectory()

getInputStream

public InputStream getInputStream()
Get an input stream that may supply additional data.

Returns:
stream to read from

isOpen

public boolean isOpen()
Is open? True if the connection is still alive. Can be used with long running computations to find out if the consumer of the output has not been interupted.

Returns:
true if the connection is still alive

org.netbeans.bootstrap/1 2.52

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.