Package com.aspectran.shell.command
Class OutputRedirection
java.lang.Object
com.aspectran.shell.command.OutputRedirection
Created: 2017. 3. 8.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The writer that handles multiple writers.static enum
Output redirection operators. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrintWriter
determineOutputWriter
(List<OutputRedirection> redirectionList, ShellConsole console) Returns theWriter
instances for translet output redirection.boolean
int
hashCode()
static String
serialize
(Collection<OutputRedirection> redirectionList) void
setOperand
(String operand) toString()
-
Constructor Details
-
OutputRedirection
-
-
Method Details
-
getOperand
-
setOperand
-
getOperator
-
equals
-
hashCode
public int hashCode() -
toString
-
serialize
-
determineOutputWriter
public static PrintWriter determineOutputWriter(List<OutputRedirection> redirectionList, ShellConsole console) throws FileNotFoundException, UnsupportedEncodingException Returns theWriter
instances for translet output redirection.- Parameters:
redirectionList
- a list of the output redirectionconsole
- the Console instance- Returns:
- the
Writer
instance - Throws:
FileNotFoundException
- if the file has an invalid pathUnsupportedEncodingException
- if the named encoding is not supported
-