| tcl.lang.TclTemplateChannel
TclTemplateChannel | public class TclTemplateChannel extends Channel (Code) | | This class is used to replace the stdout for the Tcl Interp.
Everything written to stdout will instead be appended to the HTML
document.
This class is in the tcl.lang package because
tcl.lang.Channel and tcl.lang.TclIO
aren't public but we need to access those classes to define new
channels.
author: Colin Stevens (colin.stevens@sun.com) version: 1.4, 00/05/31 |
Method Summary | |
public void | close() | public boolean | eof() | public void | flush(Interp interp) | public String | read(Interp interp, int type, int numBytes) | public void | seek(long offset, int mode) | public long | tell() | public void | unregister() Removes this channel from the interp. | public void | write(Interp interp, String s) |
TclTemplateChannel | public TclTemplateChannel(Interp interp, RewriteContext hr)(Code) | | Creates a replacement for stdout in this interp.
For each call to this procedure, there should eventually be a call
to unregister to restore the original stdout for this
interp and to release the resources associated with the given
RewriteContext .
Parameters: interp - The interp in which to replace stdout. Parameters: hr - The RewriteContext to which all data written to stdout willbe appended. |
unregister | public void unregister()(Code) | | Removes this channel from the interp. After calling this, the
original stdout for this interp will be restored.
|
|
|