站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Env (Command Line Parsing API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.sendopts/2 2.0

org.netbeans.spi.sendopts
Class Env

java.lang.Object
  extended by org.netbeans.spi.sendopts.Env

public final class Env
extends Object

Represents the environment an OptionProcessor operates in. Streams can be used to read and write data provided by the user. It is also possible to obtain current user directory. In future this class may be extended with additional new getters that will describe the operating environment in greater detail.


Method Summary
 File getCurrentDirectory()
          The directory relative file operations shall be relative to.
 PrintStream getErrorStream()
          Get an output stream to which error messages may be sent.
 InputStream getInputStream()
          Get an input stream that may supply additional data.
 PrintStream getOutputStream()
          Get an output stream to which data may be sent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOutputStream

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

Returns:
stream to write to

getErrorStream

public PrintStream getErrorStream()
Get an output stream to which error messages may be sent.

Returns:
stream to write to

getCurrentDirectory

public File getCurrentDirectory()
The directory relative file operations shall be relative to. Can be specified while starting the parse of CommandLine.

Returns:
file representing current directory

getInputStream

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

Returns:
stream to read from

org.netbeans.modules.sendopts/2 2.0

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.