public static void chmodFileReadOnly(File f) throws IOException {
  if (!(f.setReadOnly() && f.setReadable(false,false) && f.setReadable(true,true))) {
  }
}

public static void chmodFileReadOnly ( File f ) throws IOException { if ( ! ( f . setReadOnly ( ) && f . setReadable ( false , false ) && f . setReadable ( true , true ) ) ) { } }
change a file to be read only for owner ( eg password file on disk that we want to protect )
