
18 Jun
2007
18 Jun
'07
1:21 p.m.
Hello, I have been thinking about changing IOStreams for a while but never came up with a design that actually got the stuff just right. I am tending toward a system that has a three layer design. The first layer encompasses reading and writing the device, the second layer takes a first or second layer object and allows you to decorate or encapsulate it (decode UTF, ISO8859 or so on) and the third layer object that allows a programmers interface (in case of legacy iostreams support for operator<< and >>). In essence, a bottom layer, top layer and "middle layer" that can be recursively applied. I recall the Java model being similar. Regards, Peter