Multimedia and URLs
Home ] Up ] Introduction to Applets ] A Simple Applet ] HTML Tags for Applets ] The Applet Life Cycle ] [ Multimedia and URLs ] Applet Context ] Converting Applications to Applets ]

 

The Java URL Class

 

Multimedia

Multimedia includes:

  • images
  • audio
  • video
  • etc...

URLs

A URL (Uniform Resource Locator) is a description of a resource on the Internet. Here is an absolute URL:

protocol://host.domain[:port]/path/filename

where protocol is one of:

Protocol Description
file a file on your local system
ftp a file on an anonymous FTP server
http a file on a World Wide Web server
gopher a file on a Gopher server
WAIS a file on a WAIS server
news a Usenet newsgroup
telnet a connection to a Telnet-based service

etc.

other, often application-specific, protocols

You can also use a mailto protocol:

mailto:president@whitehouse.gov

The :port is generally omitted, because each protocol has its own default port number.  However, it is sometimes required when a server is using an non-standard port number.

Here's a typical example:

http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html

Another form of URL is a relative URL. For example:

data/planets.dat

which is relative to some other URL.

For more information about URLs, see:

http://www.ncsa.uiuc.edu/demoweb/url-primer.html
 

This page was last modified on 02 October, 2007