Ejemplo n.º 1
0
 protected OperaPreferences getPreferences(File paramFile) throws IOException {
   OperaPreferences localOperaPreferences = null;
   if (paramFile.exists()) {
     if (paramFile.canRead()) {
       if (paramFile.canWrite()) {
         localOperaPreferences = new OperaPreferences();
         localOperaPreferences.load(new FileInputStream(paramFile));
       } else {
         Trace.println(
             "No write access to the Opera preference file (" + paramFile.getAbsolutePath() + ").",
             TraceLevel.BASIC);
       }
     } else
       Trace.println(
           "No read access to the Opera preference file (" + paramFile.getAbsolutePath() + ").",
           TraceLevel.BASIC);
   } else
     Trace.println(
         "The Opera preference file (" + paramFile.getAbsolutePath() + ") does not exist.",
         TraceLevel.BASIC);
   return localOperaPreferences;
 }