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 classThe writer that handles multiple writers.static enumOutput redirection operators. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrintWriterdetermineOutputWriter(List<OutputRedirection> redirectionList, ShellConsole console) Returns theWriterinstances for translet output redirection.booleaninthashCode()static Stringserialize(Collection<OutputRedirection> redirectionList) voidsetOperand(String operand) toString()
-
Constructor Details
-
OutputRedirection
-
-
Method Details
-
getOperand
-
setOperand
-
getOperator
-
equals
-
hashCode
public int hashCode() -
toString
-
serialize
-
determineOutputWriter
@Nullable public static PrintWriter determineOutputWriter(List<OutputRedirection> redirectionList, ShellConsole console) throws IOException Returns theWriterinstances for translet output redirection.- Parameters:
redirectionList- a list of the output redirectionconsole- the Console instance- Returns:
- the
Writerinstance - Throws:
FileNotFoundException- if the file has an invalid pathUnsupportedEncodingException- if the named encoding is not supportedIOException
-