privatestaticvoid createTestDir() throws Exception {
File testDir = new File("a#b"); boolean result = testDir.mkdir();
}
privatestaticvoid eraseTestDir() throws Exception {
File classFile = new File("a#b/Hello.class");
classFile.delete();
File testDir = new File("a#b");
testDir.delete();
}
privatestaticvoid copyClassFile() throws Exception {
FileInputStream fis = new FileInputStream(testPath + "Hello.class");
FileOutputStream fos = new FileOutputStream("a#b/Hello.class");
int bytesRead; byte buf[] = newbyte[410]; do {
bytesRead = fis.read(buf); if (bytesRead > 0)
fos.write(buf, 0, bytesRead);
} while (bytesRead != -1);
fis.close();
fos.flush();
fos.close();
}
privatestaticvoid invokeJava() throws Exception {
String command = System.getProperty("java.home") +
File.separator + "bin" + File.separator + "java -classpath " + "a#b/ Hello";
Process p = Runtime.getRuntime().exec(command);
p.waitFor(); int result = p.exitValue(); if (result != 0) thrownew RuntimeException("Path encoding failure.");
}
}
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.3Bemerkung:
¤
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.