stream object class