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()
PlexusIoArchivedResourceCollection
getFile
in interface PlexusIoArchivedResourceCollection
public void setFile(File file)
PlexusIoArchivedResourceCollection
setFile
in interface PlexusIoArchivedResourceCollection
public String getPath()
public void setPath(String path)
public Iterator<PlexusIoResource> getResources() throws IOException
PlexusIoResourceCollection
getResources
in interface PlexusIoResourceCollection
IOException
- .protected String getName(File file) throws IOException
IOException
protected abstract String getDefaultExtension()
protected abstract InputStream getInputStream(File file) throws IOException
IOException
public String getName(PlexusIoResource resource) throws IOException
PlexusIoResourceCollection
getName
in interface PlexusIoResourceCollection
resource
- A resource, which has been obtained by
calling PlexusIoResourceCollection.getResources()
.IOException
- .public long getLastModified() throws IOException
PlexusIoResourceCollection
getLastModified
in interface PlexusIoResourceCollection
PlexusIoResource.UNKNOWN_MODIFICATION_DATE
,
if the collections last modification time is unknown,
otherwise the last modification time in milliseconds.IOException
- .Copyright © 2001-2013 Codehaus. All Rights Reserved.