private static OutputStream getStream ( String name ) throws IOException { OutputStream os = null ; synchronized ( streamCache ) { if ( ( os = ( OutputStream ) streamCache . get ( name ) ) != null ) return os ; os = new FileOutputStream ( name , true ) ; streamCache . put ( name , os ) ; } return os ; }
Internal method to get a named stream