public abstract class AbstractPlexusIoArchiveResourceCollection extends AbstractPlexusIoResourceCollection implements PlexusIoArchivedResourceCollection
PlexusIoFileResourceCollection
for
zip files, tar files, etc.DEFAULT_ROLE_HINT, ROLE
Modifier | Constructor and Description |
---|---|
protected |
AbstractPlexusIoArchiveResourceCollection() |
Modifier and Type | Method and Description |
---|---|
protected abstract Iterator<PlexusIoResource> |
getEntries()
Returns an iterator over the archives entries.
|
File |
getFile()
Returns the zip file
|
long |
getLastModified()
Returns the collections last modification time.
|
Iterator<PlexusIoResource> |
getResources()
Returns an iterator over the resources in the collection.
|
void |
setFile(File file)
Sets the zip file
|
enableLogging, getExcludes, getFileMappers, getFileSelectors, getIncludes, getName, getPrefix, isCaseSensitive, isIncludingEmptyDirectories, isSelected, isUsingDefaultExcludes, setCaseSensitive, setExcludes, setFileMappers, setFileSelectors, setIncludes, setIncludingEmptyDirectories, setPrefix, setUsingDefaultExcludes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
protected AbstractPlexusIoArchiveResourceCollection()
public void setFile(File file)
setFile
in interface PlexusIoArchivedResourceCollection
public File getFile()
getFile
in interface PlexusIoArchivedResourceCollection
protected abstract Iterator<PlexusIoResource> getEntries() throws IOException
IOException
- an IOException, dohpublic Iterator<PlexusIoResource> getResources() throws IOException
PlexusIoResourceCollection
getResources
in interface PlexusIoResourceCollection
IOException
- .public long getLastModified() throws IOException
PlexusIoResourceCollection
getLastModified
in interface PlexusIoResourceCollection
getLastModified
in class AbstractPlexusIoResourceCollection
PlexusIoResource.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.