[tcljava-dev] New IO subsystem for Jacl checked in
Brought to you by:
mdejong
From: Mo D. <md...@un...> - 2003-03-08 04:00:13
|
Hey all. It took quite some doing, but I finally managed to get a port of the Tcl IO subsystem working in Jacl. I just checked it into the CVS. It supports binary IO as well as encoded IO and all the normal fconfigure options should be working now. Jacl now does all its own buffering and character conversion. Jacl should now do IO exactly the same as Tcl, except that fileevent is not yet implemented so you can't do async IO. This implementation is not optimized yet, there are still some things that could be done to avoid some buffer allocation but it does pass almost all of the test cases. The only real bummer is the fact that I had to use the sun.io.CharToByteConverter and sun.io.ByteToCharConverter classes because there is no Java API that supports character conversion. There are some new character conversion classes in JDK 1.4, but adding that support is still on the TODO list. cheers Mo |