public GZIPOutputStream getGZIPOutputStream ( BeanId beanId ) throws CSIException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getOutputStream" , beanId ) ; final String fileName = getPortableFilename ( beanId ) ; final long beanTimeoutTime = getBeanTimeoutTime ( beanId ) ; GZIPOutputStream result = null ; try { result = ( GZIPOutputStream ) AccessController . doPrivileged ( new PrivilegedExceptionAction < GZIPOutputStream > ( ) { public GZIPOutputStream run ( ) throws IOException { File statefulBeanFile = getStatefulBeanFile ( fileName , false ) ; FileOutputStream fos = EJSPlatformHelper . isZOS ( ) ? new WSFileOutputStream ( statefulBeanFile , beanTimeoutTime ) : new FileOutputStream ( statefulBeanFile ) ; return new GZIPOutputStream ( fos ) ; // d651126 } } ) ; } catch ( PrivilegedActionException ex2 ) { Exception ex = ex2 . getException ( ) ; FFDCFilter . processException ( ex , CLASS_NAME + ".getOutputStream" , "127" , this ) ; Tr . warning ( tc , "IOEXCEPTION_WRITING_FILE_FOR_STATEFUL_SESSION_BEAN_CNTR0025W" , new Object [ ] { fileName , this , ex } ) ; //p111002.3 throw new CSIException ( "Unable to open output stream" , ex ) ; } if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getOutputStream" ) ; return result ; }
Get object ouput stream suitable for reading persistent state associated with given key .