privatestaticboolean hasFtp() { try { returnnew java.net.URL("ftp://") != null;
} catch (java.net.MalformedURLException x) {
System.out.println("FTP not supported by this runtime."); returnfalse;
}
}
staticclass Entry { final String context; final String spec; final String expected;
Entry(String context, String spec, String expected) { this.context = context; this.spec =spec; this.expected = expected;
}
}
static Entry[] fileURLs = new Entry[] { new Entry(null, "file://JavaSoft/Test", "file://JavaSoft/Test"), new Entry(null, "file:///JavaSoft/Test", "file:/JavaSoft/Test"), new Entry(null, "file:/JavaSoft/Test", "file:/JavaSoft/Test"), new Entry(null, "file:/c:/JavaSoft/Test", "file:/c:/JavaSoft/Test"), new Entry(null, "file:/c:/JavaSoft/Test:something", "file:/c:/JavaSoft/Test:something"), new Entry(null, "file:/c:/JavaSoft/Test#anchor", "file:/c:/JavaSoft/Test#anchor"), new Entry("file://JavaSoft/Test", "Test#bar", "file://JavaSoft/Test#bar"), new Entry("file://codrus/c:/jdk/eng/index.html", "pulsar.html", "file://codrus/c:/jdk/eng/pulsar.html"), new Entry("file:///c:/jdk/eng/index.html", "pulsar.html", "file:/c:/jdk/eng/pulsar.html"), new Entry("file:///jdk/eng/index.html", "pulsar.html", "file:/jdk/eng/pulsar.html"), new Entry("file://JavaSoft/Test", "file://radartoad.com/Test#bar", "file://radartoad.com/Test#bar"), new Entry("file://JavaSoft/Test", "/c:/Test#bar", "file://JavaSoft/c:/Test#bar"),
};
static Entry[] ftpURLs = new Entry[] { new Entry(null, "ftp://ftp.foo.com/dir1/entry.txt", "ftp://ftp.foo.com/dir1/entry.txt"), new Entry(null, "ftp://br:pwd@ftp.foo.com/dir1/jar.jar", "ftp://br:pwd@ftp.foo.com/dir1/jar.jar"), new Entry("ftp://ftp.foo.com/dir1/foo.txt", "bar.txt", "ftp://ftp.foo.com/dir1/bar.txt"), new Entry("ftp://ftp.foo.com/dir1/jar.jar", "/entry.txt", "ftp://ftp.foo.com/entry.txt"), new Entry("ftp://ftp.foo.com/dir1/jar.jar", "dir1/entry.txt", "ftp://ftp.foo.com/dir1/dir1/entry.txt"), new Entry("ftp://ftp.foo.com/dir1/jar.jar", "/dir1/entry.txt", "ftp://ftp.foo.com/dir1/entry.txt"), new Entry("ftp://br:pwd@ftp.foo.com/dir1/jar.jar", "/dir1/entry.txt", "ftp://br:pwd@ftp.foo.com/dir1/entry.txt")
};
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-06-10)
¤
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.