tcl.lang.process
Enum Redirect.Type

java.lang.Object
  extended by java.lang.Enum<Redirect.Type>
      extended by tcl.lang.process.Redirect.Type
All Implemented Interfaces:
Serializable, Comparable<Redirect.Type>
Enclosing class:
Redirect

public static enum Redirect.Type
extends Enum<Redirect.Type>

The types of redirection that can be defined


Enum Constant Summary
FILE
           
INHERIT
           
MERGE_ERROR
           
PIPE
           
STREAM
           
TCL_CHANNEL
           
 
Method Summary
static Redirect.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Redirect.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INHERIT

public static final Redirect.Type INHERIT

PIPE

public static final Redirect.Type PIPE

FILE

public static final Redirect.Type FILE

TCL_CHANNEL

public static final Redirect.Type TCL_CHANNEL

MERGE_ERROR

public static final Redirect.Type MERGE_ERROR

STREAM

public static final Redirect.Type STREAM
Method Detail

values

public static Redirect.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Redirect.Type c : Redirect.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Redirect.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2015. All rights reserved.