public class JarFileArchive extends Object implements Archive
| Modifier and Type | Class and Description |
|---|---|
static class |
JarFileArchive.JarFileEntry
Archive.Entry implementation backed by a JarEntry. |
Archive.Entry, Archive.EntryFilter| Constructor and Description |
|---|
JarFileArchive(File file) |
JarFileArchive(File file,
URL url) |
JarFileArchive(JarFile jarFile) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream(ZipEntry zipEntry) |
Manifest |
getManifest() |
Archive |
getNestedArchive(Archive.Entry entry) |
List<Archive> |
getNestedArchives(Archive.EntryFilter filter) |
Properties |
getPomProperties() |
URL |
getUrl() |
Iterator<Archive.Entry> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic JarFileArchive(File file) throws IOException
IOExceptionpublic JarFileArchive(File file, URL url) throws IOException
IOExceptionpublic JarFileArchive(JarFile jarFile)
public URL getUrl() throws MalformedURLException
getUrl in interface ArchiveMalformedURLExceptionpublic Manifest getManifest() throws IOException
getManifest in interface ArchiveIOExceptionpublic List<Archive> getNestedArchives(Archive.EntryFilter filter) throws IOException
getNestedArchives in interface ArchiveIOExceptionpublic InputStream getInputStream(ZipEntry zipEntry) throws IOException
getInputStream in interface ArchiveIOExceptionpublic Iterator<Archive.Entry> iterator()
iterator in interface Iterable<Archive.Entry>public Properties getPomProperties() throws IOException
IOExceptionpublic Archive getNestedArchive(Archive.Entry entry) throws IOException
getNestedArchive in interface ArchiveIOExceptionCopyright © 2024. All rights reserved.