Android Reference
Handler
org.apache.harmony.luni.tests.java.net.test_protocol
Class Handler
-
-
Constructor Summary
Constructors
Constructor and Description |
Handler() |
-
Method Summary
Methods
Modifier and Type |
Method and Description |
protected URLConnection |
openConnection(URL u)
Establishes a new connection to the resource specified by the URL u .
|
-
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
openConnection
protected URLConnection openConnection(URL u)
throws IOException
Establishes a new connection to the resource specified by the URL u
. Since different protocols also have unique ways of connecting, it
must be overwritten by the subclass.
- Specified by:
openConnection
in class URLStreamHandler
- Parameters:
u
- the URL to the resource where a connection has to be opened.
- Returns:
- the opened URLConnection to the specified resource.
- Throws:
IOException
- if an I/O error occurs during opening the connection.
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 362 / 159525505. Delta: 0.04191 с