tcl.lang.channel
Class PipelineChannel

java.lang.Object
  extended by tcl.lang.channel.Channel
      extended by tcl.lang.channel.PipelineChannel

public class PipelineChannel
extends Channel

This class provides a Channel view of a Pipeline object


Field Summary
 
Fields inherited from class tcl.lang.channel.Channel
blocking, buffering, bufferSize, encoding, eofInputFilter, eofOutputFilter, eolInputFilter, eolOutputFilter, finalInputStream, finalReader, firstOutputStream, firstWriter, inputBuffer, inputEofChar, inputTranslation, markableInputStream, mode, nonBlockingOutputStream, outputBuffer, outputEofChar, outputTranslation, rawInputStream, rawOutputStream, READ_OWNERSHIP, refCount, unicodeDecoder, unicodeEncoder, WRITE_OWNERSHIP
 
Constructor Summary
PipelineChannel()
           
 
Method Summary
protected  InputStream getInputStream()
          This method should be overridden in the subclass to provide a channel specific InputStream object.
protected  OutputStream getOutputStream()
          This method should be overridden in the subclass to provide a channel specific OutputStream object.
 Pipeline getPipeline()
           
 String getStderrOutput()
           
 String open(Interp interp, String execString, int modeFlags)
          Open a new pipeline channel
 
Methods inherited from class tcl.lang.channel.Channel
checkRead, checkWrite, close, eof, flush, getBlocking, getBuffering, getBufferSize, getChanName, getEncoding, getInputEofChar, getInputTranslation, getOutputEofChar, getOutputTranslation, initInput, initOutput, isBlocked, isClosed, isReadOnly, isReadWrite, isWriteOnly, read, seek, setBlocking, setBuffering, setBufferSize, setEncoding, setInputEofChar, setInputTranslation, setOutputEofChar, setOutputTranslation, setOwnership, setOwnership, tell, waitForOwnership, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipelineChannel

public PipelineChannel()
Method Detail

open

public String open(Interp interp,
                   String execString,
                   int modeFlags)
            throws IOException,
                   TclException
Open a new pipeline channel

Parameters:
interp -
execString - String in the form of "exec" or "open"; first '|' is optional
modeFlags - TclIO.RDONLY or TclIO.WRONLY or TclIO.RDWR
Returns:
channel name
Throws:
IOException
TclException

getStderrOutput

public String getStderrOutput()
Returns:
The standard error output from the command, if any

getPipeline

public Pipeline getPipeline()
Returns:
the Pipeline object for this Channel

getInputStream

protected InputStream getInputStream()
                              throws IOException
Description copied from class: Channel
This method should be overridden in the subclass to provide a channel specific InputStream object.

Specified by:
getInputStream in class Channel
Throws:
IOException

getOutputStream

protected OutputStream getOutputStream()
                                throws IOException
Description copied from class: Channel
This method should be overridden in the subclass to provide a channel specific OutputStream object.

Specified by:
getOutputStream in class Channel
Throws:
IOException


Copyright © 2015. All rights reserved.