Package org.aksw.commons.io.process.pipe
Class OutputStreamOrPath
- java.lang.Object
-
- org.aksw.commons.io.process.pipe.OutputStreamOrPath
-
public class OutputStreamOrPath extends Object
Object that holds either an output stream or a path. Used to set up process redirection.- Author:
- raven
-
-
Field Summary
Fields Modifier and Type Field Description protected OutputStreamOutputStreamprotected Pathpath
-
Constructor Summary
Constructors Constructor Description OutputStreamOrPath(OutputStream OutputStream)OutputStreamOrPath(Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStreamgetOutputStream()PathgetPath()booleanisOutputStream()booleanisPath()
-
-
-
Field Detail
-
path
protected Path path
-
OutputStream
protected OutputStream OutputStream
-
-
Constructor Detail
-
OutputStreamOrPath
public OutputStreamOrPath(Path path)
-
OutputStreamOrPath
public OutputStreamOrPath(OutputStream OutputStream)
-
-
Method Detail
-
isPath
public boolean isPath()
-
getPath
public Path getPath()
-
isOutputStream
public boolean isOutputStream()
-
getOutputStream
public OutputStream getOutputStream()
-
-