|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttcl.lang.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 | |
---|---|
protected boolean |
blocking
Set to false when channel is in non-blocking mode. |
protected int |
buffering
Buffering (full,line, or none) |
protected int |
bufferSize
Buffer size, in bytes, allocated for channel to store input or output |
protected int |
bytesPerChar
|
protected java.lang.String |
encoding
Name of Java encoding for this Channel. |
protected tcl.lang.TclInputStream |
input
Tcl input and output objecs. |
protected char |
inputEofChar
If nonzero, use this as a signal of EOF on input. |
protected int |
inputTranslation
Translation mode for end-of-line character |
protected int |
mode
The read, write, append and create flags are set here. |
protected tcl.lang.TclOutputStream |
output
|
protected char |
outputEofChar
If nonzero, append this to a writeable channel on close. |
protected int |
outputTranslation
|
protected int |
refCount
How many interpreters hold references to this IO channel? |
Method Summary | |
---|---|
protected void |
checkRead(Interp interp)
|
protected void |
checkWrite(Interp interp)
|
protected java.io.InputStream |
getInputStream()
This method should be overridden in the subclass to provide a channel specific InputStream object. |
protected java.io.OutputStream |
getOutputStream()
This method should be overridden in the subclass to provide a channel specific OutputStream object. |
protected void |
initInput()
Setup the TclInputStream on the first call to read |
protected void |
initOutput()
Setup the TclOutputStream on the first call to write |
static void |
setErr(java.io.PrintStream err)
|
static void |
setIn(java.io.InputStream in)
Reassign the static variables that reference the in, out, and err streams used by Jacl. |
static void |
setOut(java.io.PrintStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int mode
protected int refCount
protected tcl.lang.TclInputStream input
protected tcl.lang.TclOutputStream output
protected boolean blocking
protected int buffering
protected int bufferSize
protected java.lang.String encoding
protected int bytesPerChar
protected int inputTranslation
protected int outputTranslation
protected char inputEofChar
protected char outputEofChar
Method Detail |
---|
public static void setIn(java.io.InputStream in)
public static void setOut(java.io.PrintStream out)
public static void setErr(java.io.PrintStream err)
protected java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
protected java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
protected void initInput() throws java.io.IOException
java.io.IOException
protected void initOutput() throws java.io.IOException
java.io.IOException
protected void checkRead(Interp interp) throws TclException
TclException
protected void checkWrite(Interp interp) throws TclException
TclException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |