public abstract class JarURLConnection extends URLConnection
Modifier and Type | Field and Description |
---|---|
protected URLConnection |
jarFileURLConnection
The connection to the jarfile URL, if is has been established.
|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
Modifier | Constructor and Description |
---|---|
protected |
JarURLConnection(URL url)
Constructor to be used by subclasses to initialize this JarURLConnection.
|
Modifier and Type | Method and Description |
---|---|
Attributes |
getAttributes() |
Certificate[] |
getCertificates() |
String |
getEntryName()
Return the name of the entry within the JarFile (or null if none was
specified).
|
JarEntry |
getJarEntry()
Return an immutable copy of the JarEntry within the JarFile
(or null if none was specified).
|
abstract JarFile |
getJarFile()
Return the underlying JarFile, as an immutable object.
|
URL |
getJarFileURL()
Return the URL for the underlying JarFile.
|
Attributes |
getMainAttributes() |
Manifest |
getManifest()
Return the Manifest of the underlying JarFile, as an immutable object.
|
addRequestProperty, connect, getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString
protected URLConnection jarFileURLConnection
protected JarURLConnection(URL url) throws MalformedURLException
MalformedURLException
public Attributes getAttributes() throws IOException
IOException
public Certificate[] getCertificates() throws IOException
IOException
public String getEntryName()
public JarEntry getJarEntry() throws IOException
IOException
public abstract JarFile getJarFile() throws IOException
IOException
public URL getJarFileURL()
public Attributes getMainAttributes() throws IOException
IOException
public Manifest getManifest() throws IOException
IOException