Support Stream as writer