org.springframework.boot.loader
Interface Archive

All Known Implementing Classes:
ExplodedArchive, JarFileArchive

public interface Archive

An archive that can be launched by the Launcher.

Author:
Phillip Webb
See Also:
JarFileArchive

Nested Class Summary
static interface Archive.Entry
          Represents a single entry in the archive.
static interface Archive.EntryFilter
          A filter for archive entries.
 
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.
 

Method Detail

getManifest

Manifest getManifest()
                     throws IOException
Returns the manifest of the archive.

Returns:
the manifest
Throws:
IOException

getEntries

Iterable<Archive.Entry> getEntries()
Returns archive entries.

Returns:
the archive entries

getUrl

URL getUrl()
           throws MalformedURLException
Returns a URL that can be used to load the archive.

Returns:
the archive URL
Throws:
MalformedURLException

getNestedArchive

Archive getNestedArchive(Archive.Entry entry)
                         throws IOException
Returns a nest archive from on the the contained entries.

Parameters:
entry - the entry (may be a directory or file)
Returns:
the nested archive
Throws:
IOException

getFilteredArchive

Archive getFilteredArchive(Archive.EntryFilter filter)
                           throws IOException
Returns a filtered version of the archive.

Parameters:
filter - the filter to apply
Returns:
a filter archive
Throws:
IOException


Copyright © 2013. All Rights Reserved.