question: private void throwPrintToFile ( ) { SecurityManager security = System . getSecurityManager ( ) ; if ( security != null ) { if ( printToFilePermission == null ) { printToFilePermission = new FilePermission ( "<<ALL FILES>>" , "read,write" ) ; } security . checkPermission ( printToFilePermission ) ; } }
target:  Break this out as it may be useful when we allow API to specify printing to a file. In that case its probably right to throw a SecurityException if the permission is not granted.