public interface PlexusIoResourceCollection extends Iterable<PlexusIoResource>
PlexusIoResource instances.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ROLE_HINT
Role hint of the default resource collection, which is a set
of files in a base directory.
|
static String |
ROLE
Role of the ResourceCollection component.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream(PlexusIoResource resource)
Returns an input stream for the provided resource, with stream transformers applied
|
long |
getLastModified()
Returns the collections last modification time.
|
String |
getName(PlexusIoResource resource)
Returns the resources suggested name.
|
Iterator<PlexusIoResource> |
getResources()
Returns an iterator over the resources in the collection.
|
PlexusIoResource |
resolve(PlexusIoResource resource)
Resolves the supplide resource into a "real" resource.
|
Stream |
stream()
Returns the resources as a stream.
|
static final String ROLE
static final String DEFAULT_ROLE_HINT
Iterator<PlexusIoResource> getResources() throws IOException
IOException - .Stream stream()
String getName(PlexusIoResource resource)
resource - A resource, which has been obtained by
calling getResources().long getLastModified()
throws IOException
PlexusIoResource.UNKNOWN_MODIFICATION_DATE,
if the collections last modification time is unknown,
otherwise the last modification time in milliseconds.IOException - .InputStream getInputStream(PlexusIoResource resource) throws IOException
resource - The resourcesIOException - when something goes badPlexusIoResource resolve(PlexusIoResource resource) throws IOException
resource - The resourcesIOException - when something goes badCopyright © 2001-2015 Codehaus. All Rights Reserved.