add setPrintStream method realisation