question: private PrintStream newStream ( String name ) throws IOException { if ( LOG . isDebuggingFiner ( ) ) { LOG . debugFiner ( "Requested stream: " + name ) ; } if ( ! basename . exists ( ) ) { basename . mkdirs ( ) ; } String fn = basename . getAbsolutePath ( ) + File . separator + name + EXTENSION ; if ( usegzip ) { fn = fn + GZIP_EXTENSION ; } File n = new File ( fn ) ; OutputStream os = new FileOutputStream ( n ) ; if ( usegzip ) { os = new GZIPOutputStream ( os ) ; } PrintStream res = new PrintStream ( os ) ; if ( LOG . isDebuggingFiner ( ) ) { LOG . debugFiner ( "Opened new output stream:" + fn ) ; } return res ; }
target:  Open a new stream of the given name