Bug 902222, Refactor bytestreams and textstreams to use Class, not requi...

...re 'new' keyword