public abstract class PlexusIoCompressedFileResourceCollection extends Object implements PlexusIoArchivedResourceCollection
DEFAULT_ROLE_HINT, ROLE| Constructor and Description |
|---|
PlexusIoCompressedFileResourceCollection() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getDefaultExtension() |
File |
getFile()
Returns the archive file
|
protected abstract InputStream |
getInputStream(File file) |
long |
getLastModified()
Returns the collections last modification time.
|
protected String |
getName(File file) |
String |
getName(PlexusIoResource resource)
Returns the resources suggested name.
|
String |
getPath() |
Iterator<PlexusIoResource> |
getResources()
Returns an iterator over the resources in the collection.
|
void |
setFile(File file)
Sets the arcihve file
|
void |
setPath(String path) |
public PlexusIoCompressedFileResourceCollection()
public File getFile()
PlexusIoArchivedResourceCollectiongetFile in interface PlexusIoArchivedResourceCollectionpublic void setFile(File file)
PlexusIoArchivedResourceCollectionsetFile in interface PlexusIoArchivedResourceCollectionpublic String getPath()
public void setPath(String path)
public Iterator<PlexusIoResource> getResources() throws IOException
PlexusIoResourceCollectiongetResources in interface PlexusIoResourceCollectionIOException - .protected String getName(File file) throws IOException
IOExceptionprotected abstract String getDefaultExtension()
protected abstract InputStream getInputStream(File file) throws IOException
IOExceptionpublic String getName(PlexusIoResource resource) throws IOException
PlexusIoResourceCollectiongetName in interface PlexusIoResourceCollectionresource - A resource, which has been obtained by
calling PlexusIoResourceCollection.getResources().IOException - .public long getLastModified()
throws IOException
PlexusIoResourceCollectiongetLastModified in interface PlexusIoResourceCollectionPlexusIoResource.UNKNOWN_MODIFICATION_DATE,
if the collections last modification time is unknown,
otherwise the last modification time in milliseconds.IOException - .Copyright © 2001-2014 Codehaus. All Rights Reserved.