public OutputStream getOutputStream ( ) throws IOException { connect ( ) ; SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { // Check for write access FilePermission p = new FilePermission ( file . getPath ( ) , "write" ) ; sm . checkPermission ( p ) ; } return new FileOutputStream ( file ) ; }
We should probably disallow this?