|
||||||||||
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 java.util.Iterator |
getEntries()
Returns an iterator over the archives entries. |
java.io.File |
getFile()
Returns the zip file |
long |
getLastModified()
Returns the collections last modification time. |
java.util.Iterator |
getResources()
Returns an iterator over the resources in the collection. |
void |
setFile(java.io.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(java.io.File file)
setFile
in interface PlexusIoArchivedResourceCollection
public java.io.File getFile()
getFile
in interface PlexusIoArchivedResourceCollection
protected abstract java.util.Iterator getEntries() throws java.io.IOException
java.io.IOException
public java.util.Iterator getResources() throws java.io.IOException
PlexusIoResourceCollection
getResources
in interface PlexusIoResourceCollection
java.io.IOException
public long getLastModified() throws java.io.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.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |