|
Final | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--java.net.URLConnection
|
+--java.net.JarURLConnection
This class establishes a connection to a URL using the jar protocol. Jar URLs are specified as follows:
jar:!/{entry}
| Field Summary | |
|---|---|
protected URLConnection |
jarFileURLConnection
|
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
protected |
JarURLConnection(URL url)
Contructs an instance of JarURLConnection. |
| Method Summary | |
|---|---|
Attributes |
getAttributes()
Answers the attributes of the JarEntry referenced by this JarURLConnection. |
Certificate[] |
getCertificates()
Answers the Certificates of the JarEntry referenced by this URLConnection. |
String |
getEntryName()
Answers the JarEntry name of the entry referenced by this URLConnection. |
JarEntry |
getJarEntry()
Answers the JarEntry of the entry referenced by this URLConnection. |
abstract JarFile |
getJarFile()
Answers the the JarFile referenced by this URLConnection. |
URL |
getJarFileURL()
Answers the URL of the JarFile referenced by this URLConnection. |
Attributes |
getMainAttributes()
Answers the main Attributes of the JarFile referenced by this URLConnection. |
Manifest |
getManifest()
Answers the Manifest associated with the Jar URL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected URLConnection jarFileURLConnection
| Constructor Detail |
protected JarURLConnection(URL url)
throws MalformedURLException
JarURLConnection.
url - java.net.URL the URL that contains the location to connect to| Method Detail |
public Attributes getAttributes()
throws IOException
JarURLConnection.
IOException - thrown if an IO exception occurs while
retrieving the JarEntrypublic Certificate[] getCertificates()
throws IOException
URLConnection. This method will return null until
the InputStream has been completely verified
IOException - thrown if there is an IO exception occurs while
getting the JarEntry.public String getEntryName()
URLConnection.
public JarEntry getJarEntry()
throws IOException
URLConnection.
IOExceptionpublic Manifest getManifest()
throws IOException
IOExceptionpublic abstract JarFile getJarFile()
throws IOException
URLConnection.
IOException - thrown if an IO exception occurs while
retrieving the Jar filepublic URL getJarFileURL()
URLConnection.
public Attributes getMainAttributes()
throws IOException
URLConnection.
IOException - thrown if an IO exception occurs while
retrieving the JarFile
|
Final | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||