Class PosixPipe
java.lang.Object
org.aksw.shellgebra.exec.graph.PipeBase
org.aksw.shellgebra.io.pipe.PosixPipe
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Method Details
-
open
Create a new anonymous pipe (readFd, writeFd).- Throws:
IOException
-
getInputStream
- Specified by:
getInputStreamin classPipeBase
-
getOutputStream
- Specified by:
getOutputStreamin classPipeBase
-
getReadFd
public int getReadFd() -
getWriteFd
public int getWriteFd() -
procPath
-
getReadFileDescriptor
-
getWriteFileDescriptor
-
getReadEndProcPath
Linux-only: path that other processes can open to attach to the pipe read end. Think: cat $(pipe.getReadEndProcPath()) -
getReadEndProcFile
-
getWriteEndProcPath
-
getWriteEndProcFile
-
close
Close both ends of the pipe. We let the Java streams own the close(); they will close the underlying fds.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isAnonymousProcPipe
- Throws:
IOException
-