public class ReadInputStreamChannel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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?
|
Constructor and Description |
---|
ReadInputStreamChannel(Interp interp,
java.io.InputStream in_stream)
Constructor - creates a new ReadInputStreamChannel object that
will read from the passed in InputStream.
|
Modifier and Type | Method and Description |
---|---|
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
|
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
public ReadInputStreamChannel(Interp interp, java.io.InputStream in_stream)
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