|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
java.net.JarURLConnection
public abstract class JarURLConnection
This class establishes a connection to a URL using the jar protocol. Jar URLs are specified as follows:
jar:!/{entry}
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.net.URLConnection |
|---|
URLConnection.DefaultContentHandler |
| Field Summary | |
|---|---|
protected URLConnection |
jarFileURLConnection
|
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, contentHandlers, defaultHandler, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
protected |
JarURLConnection(URL url)
Contructs an instance of JarURLConnection. |
| Method Summary | |
|---|---|
Attributes |
getAttributes()
Returns the attributes of the JarEntry referenced by this JarURLConnection. |
Certificate[] |
getCertificates()
Returns the Certificates of the JarEntry referenced by this URLConnection. |
String |
getEntryName()
Returns the JarEntry name of the entry referenced by this URLConnection. |
JarEntry |
getJarEntry()
Returns the JarEntry of the entry referenced by this URLConnection. |
abstract JarFile |
getJarFile()
Returns the the JarFile referenced by this URLConnection. |
URL |
getJarFileURL()
Returns the URL of the JarFile referenced by this URLConnection. |
Attributes |
getMainAttributes()
Returns the main Attributes of the JarFile referenced by this URLConnection. |
Manifest |
getManifest()
Returns 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
MalformedURLException| Method Detail |
|---|
public Attributes getAttributes()
throws IOException
JarURLConnection.
IOException - thrown if an IO exception occurs while retrieving the
JarEntry
public 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.
IOException
public Manifest getManifest()
throws IOException
IOException
public 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
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||