- URI 统一资源标识符 [scheme:]scheme-specific-part[#fragment]
分为透明URI或者层次化URI
- 透明URI是绝对URI 它的scheme-specific-part 不是开始于’/’,不透明的URI不需要进一步的解析。如下
mailto:java-net@java.sun.com
news:comp.lang.java
urn:isbn:096139210x
- 层次化的URI可以是绝对URI(scheme-specific-part 以’/'开始)或者是相对URI即没有scheme 。如下
http://java.sun.com/j2se/1.3/
docs/guide/collections/designfaq.html#28
../../../demo/jfc/SwingSet2/src/SwingSet2.java
file:///~/calendar
- 层次化的URI需要根据语法[scheme:][//authority][path][?query][#fragment]进一步的解析
The authority component of a hierarchical URI is, if specified, either server-based or registry-based. A server-based authority parses according to the familiar syntax
[user-info@]host[:port]