|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResourceCollection
org.codehaus.plexus.components.io.resources.AbstractPlexusIoArchiveResourceCollection
public abstract class AbstractPlexusIoArchiveResourceCollection
Default implementation of PlexusIoFileResourceCollection for
zip files, tar files, etc.
| Field Summary |
|---|
| Fields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection |
|---|
DEFAULT_ROLE_HINT, ROLE |
| Constructor Summary | |
|---|---|
protected |
AbstractPlexusIoArchiveResourceCollection()
|
protected |
AbstractPlexusIoArchiveResourceCollection(org.codehaus.plexus.logging.Logger logger)
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.codehaus.plexus.components.io.resources.AbstractPlexusIoResourceCollection |
|---|
enableLogging, getExcludes, getFileMappers, getFileSelectors, getIncludes, getLogger, getName, getPrefix, isCaseSensitive, isIncludingEmptyDirectories, isSelected, isUsingDefaultExcludes, setCaseSensitive, setExcludes, setFileMappers, setFileSelectors, setIncludes, setIncludingEmptyDirectories, setPrefix, setUsingDefaultExcludes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection |
|---|
getName |
| Constructor Detail |
|---|
protected AbstractPlexusIoArchiveResourceCollection()
protected AbstractPlexusIoArchiveResourceCollection(org.codehaus.plexus.logging.Logger logger)
| Method Detail |
|---|
public void setFile(File file)
setFile in interface PlexusIoArchivedResourceCollectionpublic File getFile()
getFile in interface PlexusIoArchivedResourceCollection
protected abstract Iterator<PlexusIoResource> getEntries()
throws IOException
IOException - an IOException, doh
public Iterator<PlexusIoResource> getResources()
throws IOException
PlexusIoResourceCollection
getResources in interface PlexusIoResourceCollectionIOException - .
public long getLastModified()
throws IOException
PlexusIoResourceCollection
getLastModified in interface PlexusIoResourceCollectiongetLastModified in class AbstractPlexusIoResourceCollectionPlexusIoResource.UNKNOWN_MODIFICATION_DATE,
if the collections last modification time is unknown,
otherwise the last modification time in milliseconds.
IOException - .
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||