java.net
public
abstract
class
java.net.JarURLConnection
This class establishes a connection to a URL using the jar protocol. Jar URLs
are specified as follows:
jar:!/{entry}
where "!/" is called a seperator.
Summary
Fields
Protected Constructors
Public Methods
addRequestProperty,
connect,
getAllowUserInteraction,
getConnectTimeout,
getContent,
getContent,
getContentEncoding,
getContentLength,
getContentType,
getDate,
getDefaultAllowUserInteraction,
getDefaultRequestProperty,
getDefaultUseCaches,
getDoInput,
getDoOutput,
getExpiration,
getFileNameMap,
getHeaderField,
getHeaderField,
getHeaderFieldDate,
getHeaderFieldInt,
getHeaderFieldKey,
getHeaderFields,
getIfModifiedSince,
getInputStream,
getLastModified,
getOutputStream,
getPermission,
getReadTimeout,
getRequestProperties,
getRequestProperty,
getURL,
getUseCaches,
guessContentTypeFromName,
guessContentTypeFromStream,
setAllowUserInteraction,
setConnectTimeout,
setContentHandlerFactory,
setDefaultAllowUserInteraction,
setDefaultRequestProperty,
setDefaultUseCaches,
setDoInput,
setDoOutput,
setFileNameMap,
setIfModifiedSince,
setReadTimeout,
setRequestProperty,
setUseCaches,
toString
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Fields
Protected Constructors
protected
JarURLConnection(URL url)
Contructs an instance of
JarURLConnection.
Parameters
| url
| java.net.URL the URL that contains the location to connect to
|
Public Methods
public
Attributes
getAttributes()
Answers the attributes of the JarEntry referenced by this
JarURLConnection.
Returns
- java.util.jar.Attributes the attributes of the the JarEntry
Throws
| IOException
| thrown if an IO exception occurs while retrieving the
JarEntry
|
Answers the Certificates of the JarEntry referenced by this
URLConnection. This method will return null until the
InputStream has been completely verified
Returns
- Certificate[] the Certificates of the JarEntry.
Throws
| IOException
| thrown if there is an IO exception occurs while getting
the JarEntry.
|
public
String
getEntryName()
Answers the JarEntry name of the entry referenced by this
URLConnection.
Returns
- java.lang.String the JarEntry name
public
JarEntry
getJarEntry()
Answers the JarEntry of the entry referenced by this
URLConnection.
Returns
- java.util.jar.JarEntry the JarEntry referenced
public
abstract
JarFile
getJarFile()
Answers the the JarFile referenced by this
URLConnection.
Returns
- java.util.jar.JarFile the JarFile
Throws
| IOException
| thrown if an IO exception occurs while retrieving the Jar
file
|
public
URL
getJarFileURL()
Answers the URL of the JarFile referenced by this
URLConnection.
Returns
- java.net.URL the URL of the JarFile.
public
Attributes
getMainAttributes()
Answers the main Attributes of the JarFile referenced by this
URLConnection.
Returns
- java.util.jar.Attributes the Attributes of the the JarFile
Throws
| IOException
| thrown if an IO exception occurs while retrieving the
JarFile
|
public
Manifest
getManifest()
Answers the Manifest associated with the Jar URL
Returns
- java.util.jar.Manifest The JarFile's Manifest