|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
org.arakhne.vmutil.file.URLConnection
class URLConnection
The class URLConnection is implementing
connection between an URL and a local file.
Instances of this class can be used both to
read from and to write to the resource referenced by the file URL.
Supported header fields are:
content-typecontent-lengthlast-modified
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 | |||||||||