7.1. The URL Class7.1.1. Creating New URLs7.1.1.1. Constructing a URL from a string7.1.1.2. Constructing a URL from its component parts7.1.1.3. Constructing relative URLs7.1.1.4. Specifying a URLStreamHandler // Java 1.27.1.1.5. Other sources of URL objects7.1.2. Splitting a URL into Pieces7.1.2.1. public String getProtocol( )7.1.2.2. public String getHost( )7.1.2.3. public int getPort( )7.1.2.4. public int getDefaultPort( )7.1.2.5. public String getFile( )7.1.2.6. public String getPath( ) // Java 1.37.1.2.7. public String getRef( )7.1.2.8. public String getQuery( ) // Java 1.37.1.2.9. public String getUserInfo( ) // Java 1.37.1.2.10. public String getAuthority( ) // Java 1.37.1.3. Retrieving Data from a URL7.1.3.1. public final InputStream openStream( ) throws
IOException7.1.3.2. public URLConnection openConnection( ) throws
IOException7.1.3.3. public final Object getContent( ) throws IOException7.1.3.4. public final Object getContent(Class[] classes) throws
IOException // Java 1.37.1.4. Utility Methods7.1.4.1. public boolean sameFile(URL other)7.1.4.2. public String toExternalForm( )7.1.4.3. public URI toURI( ) throws URISyntaxException // Java
1.57.1.5. The Object Methods7.1.5.1. public String toString( )7.1.5.2. public boolean equals(Object o)7.1.5.3. public int hashCode( )7.1.6. Methods for Protocol Handlers7.1.6.1. public static synchronized void
setURLStreamHandlerFactory(URLStreamHandlerFactory factory)7.2. The URLEncoder and URLDecoder Classes7.2.1. URLEncoder7.2.2. URLDecoder7.3. The URI Class7.3.1. Constructing a URI7.3.1.1. public URI(String uri) throws URISyntaxException7.3.1.2. public URI(String scheme, String schemeSpecificPart, String
fragment) throws URISyntaxException7.3.1.3. public URI(String scheme, String host, String path, String
fragment) throws URISyntaxException7.3.1.4. public URI(String scheme, String authority, String path,
String query, String fragment) throws URISyntaxException7.3.1.5. public URI(String scheme, String userInfo, String host, int
port, String path, String query, String fragment) throws
URISyntaxException7.3.1.6. public static URI create(String uri)7.3.2. The Parts of the URI7.3.3. Resolving Relative URIs7.3.3.1. public URI resolve(URI uri)7.3.3.2. public URI resolve(String uri)7.3.3.3. public URI relativize(URI uri)7.3.4. Utility Methods7.3.4.1. public boolean equals(Object o)7.3.4.2. public int hashCode( )7.3.4.3. public int compareTo(Object o)7.3.4.4. public String toString( )7.3.4.5. public String toASCIIString( )7.4. Proxies7.4.1. System Properties7.4.2. The Proxy Class7.4.3. The ProxySelector Class7.5. Communicating with Server-Side Programs Through GET7.6. Accessing Password-Protected Sites7.6.1. The Authenticator Class7.6.2. The PasswordAuthentication Class7.6.3. The JPasswordField Class