Class InputStreamOrPath
java.lang.Object
org.aksw.commons.io.process.pipe.InputStreamOrPath
Object that holds either an input stream or a path.
Used to set up process redirection.
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamOrPathfrom(InputStream inputStream) static InputStreamOrPathgetPath()booleanisPath()booleanisStream()
-
Field Details
-
path
-
inputStream
-
-
Constructor Details
-
InputStreamOrPath
-
InputStreamOrPath
-
-
Method Details
-
from
-
from
-
isPath
public boolean isPath() -
getPath
-
isStream
public boolean isStream() -
getInputStream
-