org.springframework.boot.loader
Class ExplodedArchive

java.lang.Object
  extended by org.springframework.boot.loader.ExplodedArchive
All Implemented Interfaces:
Archive

public class ExplodedArchive
extends Object
implements Archive

Archive implementation backed by an exploded archive directory.

Author:
Phillip Webb

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.boot.loader.Archive
Archive.Entry, Archive.EntryFilter
 
Constructor Summary
ExplodedArchive(File root)
           
 
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

ExplodedArchive

public ExplodedArchive(File root)
Method Detail

getManifest

public Manifest getManifest()
                     throws IOException
Description copied from interface: Archive
Returns the manifest of the archive.

Specified by:
getManifest in interface Archive
Returns:
the manifest
Throws:
IOException

getEntries

public Iterable<Archive.Entry> getEntries()
Description copied from interface: Archive
Returns archive entries.

Specified by:
getEntries in interface Archive
Returns:
the archive entries

getUrl

public URL getUrl()
           throws MalformedURLException
Description copied from interface: Archive
Returns a URL that can be used to load the archive.

Specified by:
getUrl in interface Archive
Returns:
the archive URL
Throws:
MalformedURLException

getNestedArchive

public Archive getNestedArchive(Archive.Entry entry)
                         throws IOException
Description copied from interface: Archive
Returns a nest archive from on the the contained entries.

Specified by:
getNestedArchive in interface Archive
Parameters:
entry - the entry (may be a directory or file)
Returns:
the nested archive
Throws:
IOException

getFilteredArchive

public Archive getFilteredArchive(Archive.EntryFilter filter)
                           throws IOException
Description copied from interface: Archive
Returns a filtered version of the archive.

Specified by:
getFilteredArchive in interface Archive
Parameters:
filter - the filter to apply
Returns:
a filter archive
Throws:
IOException


Copyright © 2013. All Rights Reserved.