|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
org.arakhne.vmutil.resource.URLConnection
class URLConnection
The class URLConnection is implementing
connection between an URL and a Java resource.
Instances of this class can be used to
read from the resource referenced by the resource URL. Write
is allowed depending on where resource is located.
Supported header fields are the same as the real resource URL (basicaly, file or jar protocols).
URLConnection| Field Summary |
|---|
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
protected |
URLConnection(URL url)
|
| Method Summary | |
|---|---|
void |
connect()
|
String |
getHeaderField(int n)
|
String |
getHeaderField(String name)
|
String |
getHeaderFieldKey(int n)
|
Map<String,List<String>> |
getHeaderFields()
|
InputStream |
getInputStream()
|
OutputStream |
getOutputStream()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected URLConnection(URL url)
url - is the "file"-protocol url to use.| Method Detail |
|---|
public String getHeaderField(int n)
getHeaderField in class URLConnectionpublic String getHeaderField(String name)
getHeaderField in class URLConnectionpublic String getHeaderFieldKey(int n)
getHeaderFieldKey in class URLConnectionpublic Map<String,List<String>> getHeaderFields()
getHeaderFields in class URLConnection
public void connect()
throws IOException
connect in class URLConnectionIOException
public OutputStream getOutputStream()
throws IOException
getOutputStream in class URLConnectionIOException
public InputStream getInputStream()
throws IOException
getInputStream in class URLConnectionIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||