APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.net.www.protocol.jar

public Class URLJarFile

extends JarFile
Class Inheritance
Imports
java.io.*, java.net.*, java.nio.file.Files, .Path, .StandardCopyOption, java.security.cert.Certificate, java.util.*, java.util.jar.*, java.util.zip.ZipFile, .ZipEntry, java.security.CodeSigner, sun.net.www.ParseUtil

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
private class

Field Summary

Modifier and TypeField and Description
private URLJarFile.URLJarFileCloseController
private Attributes
private Map<String, Attributes>
private Manifest
Inherited from java.util.jar.JarFile:
MANIFEST_NAME

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.util.zip.ZipFile.close.

Implements java.io.Closeable.close.

Closes the ZIP file.

public ZipEntry

Returns:

the ZipEntry for the given entry name or null if not found
getEntry
(String
the JAR file entry name
name
)

Overrides java.util.jar.JarFile.getEntry.

Returns the ZipEntry for the given entry name or null if not found.

pack-priv static JarFile
public Manifest
getManifest()

Overrides java.util.jar.JarFile.getManifest.

Returns the jar file manifest, or null if none.

private synchronized boolean
private static JarFile
retrieve(final URL url, final URLJarFile.URLJarFileCloseController closeController)

Given a URL, retrieves a JAR file, caches it to disk, and creates a cached JAR file object.

Inherited from java.util.jar.JarFile:
baseVersionentriesgetInputStreamgetJarEntrygetVersionisMultiReleaseruntimeVersionstreamversionedStream

Field Detail

closeControllerback to summary
private URLJarFile.URLJarFileCloseController closeController
superAttrback to summary
private Attributes superAttr
superEntriesback to summary
private Map<String, Attributes> superEntries
superManback to summary
private Manifest superMan

Constructor Detail

URLJarFileback to summary
private URLJarFile(File file, URLJarFile.URLJarFileCloseController closeController, Runtime.Version version) throws IOException
URLJarFileback to summary
private URLJarFile(URL url, URLJarFile.URLJarFileCloseController closeController, Runtime.Version version) throws IOException

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.util.zip.ZipFile.close.

Implements java.io.Closeable.close.

Doc from java.util.zip.ZipFile.close.

Closes the ZIP file.

Closing this ZIP file will close all of the input streams previously returned by invocations of the getInputStream method.

Exceptions
IOException:
if an I/O error has occurred
getEntryback to summary
public ZipEntry getEntry(String name)

Overrides java.util.jar.JarFile.getEntry.

Returns the ZipEntry for the given entry name or null if not found.

Parameters
name:String

the JAR file entry name

Returns:ZipEntry

the ZipEntry for the given entry name or null if not found

See Also
java.util.zip.ZipEntry
getJarFileback to summary
pack-priv static JarFile getJarFile(URL url, URLJarFile.URLJarFileCloseController closeController) throws IOException
getManifestback to summary
public Manifest getManifest() throws IOException

Overrides java.util.jar.JarFile.getManifest.

Doc from java.util.jar.JarFile.getManifest.

Returns the jar file manifest, or null if none.

Exceptions
IOException:
if an I/O error has occurred
isSuperManback to summary
private synchronized boolean isSuperMan() throws IOException
retrieveback to summary
private static JarFile retrieve(final URL url, final URLJarFile.URLJarFileCloseController closeController) throws IOException

Given a URL, retrieves a JAR file, caches it to disk, and creates a cached JAR file object.

sun.net.www.protocol.jar back to summary

public Interface URLJarFile.URLJarFileCloseController

Known Direct Implementers
sun.net.www.protocol.jar.JarFileFactory

Method Summary

Modifier and TypeMethod and Description
public void
close(JarFile jarFile)

Method Detail

closeback to summary
public void close(JarFile jarFile)
sun.net.www.protocol.jar back to summary

private Class URLJarFile.URLJarFileEntry

extends JarEntry
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final JarEntry

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Attributes
getAttributes()

Overrides java.util.jar.JarEntry.getAttributes.

Returns the Manifest Attributes for this entry, or null if none.

public Certificate[]
getCertificates()

Overrides java.util.jar.JarEntry.getCertificates.

Returns the Certificate objects for this entry, or null if none.

public CodeSigner[]
getCodeSigners()

Overrides java.util.jar.JarEntry.getCodeSigners.

Returns the CodeSigner objects for this entry, or null if none.

Inherited from java.util.jar.JarEntry:
getRealName

Field Detail

jeback to summary
private final JarEntry je

Constructor Detail

URLJarFileEntryback to summary
pack-priv URLJarFileEntry(JarEntry je)

Method Detail

getAttributesback to summary
public Attributes getAttributes() throws IOException

Overrides java.util.jar.JarEntry.getAttributes.

Doc from java.util.jar.JarEntry.getAttributes.

Returns the Manifest Attributes for this entry, or null if none.

Annotations
@Override
Exceptions
IOException:
if an I/O error has occurred
getCertificatesback to summary
public Certificate[] getCertificates()

Overrides java.util.jar.JarEntry.getCertificates.

Doc from java.util.jar.JarEntry.getCertificates.

Returns the Certificate objects for this entry, or null if none. This method can only be called once the JarEntry has been completely verified by reading from the entry input stream until the end of the stream has been reached. Otherwise, this method will return null.

It is recommended to use the getCodeSigners method instead, which returns an array of CodeSigners.

The returned certificate array comprises all the signer certificates that were used to verify this entry. Each signer certificate is followed by its supporting certificate chain (which may be empty). Each signer certificate and its supporting certificate chain are ordered bottom-to-top (i.e., with the signer certificate first and the (root) certificate authority last).

Annotations
@Override
getCodeSignersback to summary
public CodeSigner[] getCodeSigners()

Overrides java.util.jar.JarEntry.getCodeSigners.

Doc from java.util.jar.JarEntry.getCodeSigners.

Returns the CodeSigner objects for this entry, or null if none. This method can only be called once the JarEntry has been completely verified by reading from the entry input stream until the end of the stream has been reached. Otherwise, this method will return null.

The returned array comprises all the code signers that have signed this entry.

Annotations
@Override