re: methods in Reader used by Beanshell parser

specialist33 <specialist33-cD1nTQHDQj/[email protected]>
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
I've looked through the CVS source, and it looks as though BSH only uses 
one method in Reader when Interpreter is reading from and interpreting a 
stream:

    abstract  int 	read(char[] cbuf, int off, int len)
           Read characters into a portion of an array.

I'm trying to make an alternative to the telnettable bsh interpreter 
mode that - at the very least - uses SSH and login, and then also does 
rewriting of the stream (possibly filtering too) so that the user can 
enter non-BSH commands mixed with BSH commands.

My rewriting-Reader will parse its custom commands, and NOT pass them on 
to the Interpreter.

Some of the methods in Reader it doesn't even make sense for me to 
implement (like the marking) so I'm hoping to get away with as little as 
possible :).

I'm aiming for a class that is a side-by-side replacement for 
SessiondConnection.

If I'm feeling really ambitious I'll also try and make a Sessiond 
replacement that uses NIO :) and accepts my new SessiondConnection 
alternative.

If anyone else wants this once done, I'll send them a modified 
SessiondConnection (just has an extra constructor that lets you supply a 
rewriting Reader) and hopefully an exmaple rewriter that I know works :).


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.