if ( new File(s).isAbsolute() || (s.indexOf("..") != -1) ) throw new SecurityException( "Access to file : "+ s + " denied." );