|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tcl.lang.channel.Channel tcl.lang.channel.StdChannel
public class StdChannel
Subclass of the abstract class Channel. It implements all of the methods to perform read, write, open, close, etc on system stdio channels.
Field Summary | |
---|---|
static int |
STDERR
Used to indicate that this channel is a standard error channel |
static int |
STDIN
Used to indicate that this channel is a standard input channel |
static int |
STDOUT
Used to indicate that this channel is a standard output channel |
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 | |
---|---|
StdChannel(int type)
|
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. |
static void |
setErr(PrintStream err)
Deprecated. |
static void |
setIn(InputStream in)
Deprecated. |
static void |
setOut(PrintStream out)
Deprecated. |
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 |
Field Detail |
---|
public static final int STDIN
public static final int STDOUT
public static final int STDERR
Constructor Detail |
---|
public StdChannel(int type)
Method Detail |
---|
@Deprecated public static void setIn(InputStream in)
in
- InputStream to replace standard input with@Deprecated public static void setOut(PrintStream out)
out
- OutputStream to replace standard input with@Deprecated public static void setErr(PrintStream err)
err
- OutputStream to replace standard input withprotected InputStream getInputStream() throws IOException
Channel
getInputStream
in class Channel
IOException
protected OutputStream getOutputStream() throws IOException
Channel
getOutputStream
in class Channel
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |