Package java.util.jar
Class StrictJarFile
- java.lang.Object
-
- java.util.jar.StrictJarFile
-
public final class StrictJarFile extends Object
A subset of the JarFile API implemented as a thin wrapper over system/core/libziparchive.
-
-
Constructor Summary
Constructors Constructor Description StrictJarFile(String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()ZipEntryfindEntry(String name)Certificate[][]getCertificateChains(ZipEntry ze)Return all certificate chains for a givenZipEntrybelonging to this jar.Certificate[]getCertificates(ZipEntry ze)Deprecated.Switch callers to use getCertificateChains insteadInputStreamgetInputStream(ZipEntry ze)ManifestgetManifest()StringgetName()Iterator<ZipEntry>iterator()
-
-
-
Constructor Detail
-
StrictJarFile
public StrictJarFile(String fileName) throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
-
Method Detail
-
getName
public String getName()
-
getManifest
public Manifest getManifest()
-
iterator
public Iterator<ZipEntry> iterator() throws IOException
- Throws:
IOException
-
getCertificateChains
public Certificate[][] getCertificateChains(ZipEntry ze)
Return all certificate chains for a givenZipEntrybelonging to this jar. This method MUST be called only after fully exhausting the InputStream belonging to this entry. Returnsnullif this jar file isn't signed or if this method is called before the stream is processed.
-
getCertificates
@Deprecated public Certificate[] getCertificates(ZipEntry ze)
Deprecated.Switch callers to use getCertificateChains insteadReturn all certificates for a givenZipEntrybelonging to this jar. This method MUST be called only after fully exhausting the InputStream belonging to this entry. Returnsnullif this jar file isn't signed or if this method is called before the stream is processed.
-
getInputStream
public InputStream getInputStream(ZipEntry ze)
-
close
public void close() throws IOException- Throws:
IOException
-
-