If the port is not specified, the default port is used.
URI Format | Description | Examples |
---|---|---|
[file://]absolute-path | File on the hard disk | c:\util\temp /usr/java |
zip://zip-file-uri[!absolute-path] | Content of a zip file | zip:http://somehost/downloads/somefile.zip zip://file://c:/temp.zip!/test.ini |
jar://jar-file-uri[!absolute-path] | Content of a jar file | jar:../lib/classes.jar!/META-INF/manifest.mf jar:zip:outer.zip%21/nested.jar!/somedir |
[tgz|tbz2]://tar-[gz|bz2]-file-uri[!absolute-path] | Content of a tar.gz or tar.bz2 file | tgz://file://c:/temp.tar.gz!/test.ini |
[gz|bz2]://[gz|bz2]-file | Content of a gz or bz2 file | bz2://file:///user/home/hello.bz2 |
http[s]://[username[:password]@]hostname[:port][absolute-path] | Refer to a HTTP or HTTPS file | http://somehost:8080/downloads/file.jar https://myusername@somehost/index.html |
webdav://[username[:password]@]hostname[:port][absolute-path] | Refer to a file on a WebDAV server | webdav://somehost:8080/downloads/file.jar |
ftp://[username[:password]@]hostname[:port][absolute-path] | File on a FTP server | ftp://root:pwd@somehost/pub/downloads/ ftp://root:pwd@somehost/pub/index.html |
sftp://[username[:password]@]hostname[:port][absolute-path] | File on a SSH or SCP server | sftp://root:pwd@somehost/pub/file.tgz |
ftps://[username[:password]@]hostname[:port][absolute-path] | File on FTP server over SSL | ftps://root:pwd@somehost/pub/ |
smb://[username[:password]@]hostname[:port][absolute-path] | File on a Samba server or Windows share | smb://somehost/home |
<Win.> | <Win.Personal> goes to your documents |