if (File.separatorChar != '\\') {
System.err.println("Not a win32 platform -- test inapplicable"); return;
}
//construct a test file in this location
File f1 = new File(".");
StringBuffer location = new StringBuffer("\\");
location.append(f1.getCanonicalPath());
StringBuffer fromLocation = new StringBuffer(location.toString()+"\\From");
StringBuffer toLocation = new StringBuffer(location.toString()+"\\To");
f1 = new File(fromLocation.toString());
File f2 = new File(toLocation.toString());
if(f1.exists() || f2.exists()) {
System.err.println("Directories exist -- test not valid"); return;
}
System.err.println("Create:"+f1.mkdir());
System.err.println("Exist as directory:"+f1.exists()+" "+f1.isDirectory());
success = f1.renameTo(f2);
System.err.println("Rename:"+success);
if (!success) thrownew RuntimeException("File method rename did not function");
if (!success) thrownew RuntimeException("File method delete did not function");
}
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.12Bemerkung:
(vorverarbeitet am 2026-10-01)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.