|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.boot.loader.JarFileArchive
public class JarFileArchive
Archive implementation backed by a RandomAccessJarFile.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.springframework.boot.loader.Archive |
|---|
Archive.Entry, Archive.EntryFilter |
| Constructor Summary | |
|---|---|
JarFileArchive(File file)
|
|
JarFileArchive(RandomAccessJarFile jarFile)
|
|
| Method Summary | |
|---|---|
Iterable<Archive.Entry> |
getEntries()
Returns archive entries. |
Archive |
getFilteredArchive(Archive.EntryFilter filter)
Returns a filtered version of the archive. |
Manifest |
getManifest()
Returns the manifest of the archive. |
Archive |
getNestedArchive(Archive.Entry entry)
Returns a nest archive from on the the contained entries. |
URL |
getUrl()
Returns a URL that can be used to load the archive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JarFileArchive(File file)
throws IOException
IOExceptionpublic JarFileArchive(RandomAccessJarFile jarFile)
| Method Detail |
|---|
public Manifest getManifest()
throws IOException
Archive
getManifest in interface ArchiveIOExceptionpublic Iterable<Archive.Entry> getEntries()
Archive
getEntries in interface Archive
public URL getUrl()
throws MalformedURLException
Archive
getUrl in interface ArchiveMalformedURLException
public Archive getNestedArchive(Archive.Entry entry)
throws IOException
Archive
getNestedArchive in interface Archiveentry - the entry (may be a directory or file)
IOException
public Archive getFilteredArchive(Archive.EntryFilter filter)
throws IOException
Archive
getFilteredArchive in interface Archivefilter - the filter to apply
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||