On 12/08/2010 12:32 AM, Levente Uzonyi wrote:
> On Tue, 7 Dec 2010, Philippe Marschall wrote:
> 
> snip
> 
>> No, buffering should not be in a subclass or even the file stream class
>> itself. Buffering should be an other class that wraps file stream.
> 
> Stream wrappers are cool, but they are totally different from the
> current stream design. One could create new stream classes that could do
> buffering, conversion, compression, etc. and rewrite existing code to
> use them, but if you just rewrite the existing code using an existing
> stream library (for example XTreams), then you'll get pretty much the
> same thing with less effort.

Nope sorry, writing a stream that buffers is not less effort that
porting and maintaining a whole stream library and rewriting your code.

Cheers
Philippe


Reply via email to