public OutputStream getOutputStream ( String fileName ) throws MalformedURLException , IOException { try { GetKeyStoreOutputStreamAction action = new GetKeyStoreOutputStreamAction ( fileName ) ; return AccessController . doPrivileged ( action ) ; } catch ( PrivilegedActionException e ) { Exception ex = e . getException ( ) ; FFDCFilter . processException ( e , getClass ( ) . getName ( ) , "getOutputStream" , new Object [ ] { fileName , this } ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Exception opening keystore; " + ex ) ; if ( ex instanceof MalformedURLException ) throw ( MalformedURLException ) ex ; else if ( ex instanceof IOException ) throw ( IOException ) ex ; throw new IOException ( ex . getMessage ( ) ) ; } }
Open the provided filename as an outputstream .