public abstract class AbstractPlexusIoArchiveResourceCollection extends AbstractPlexusIoResourceCollection implements PlexusIoArchivedResourceCollection
PlexusIoFileResourceCollection
for
zip files, tar files, etc.Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractPlexusIoArchiveResourceCollection.FilteringIterator |
AbstractPlexusIoResourceCollection.IdentityTransformer
Modifier and Type | Field and Description |
---|---|
private java.io.File |
file |
identityTransformer
DEFAULT_ROLE_HINT, ROLE
Modifier | Constructor and Description |
---|---|
protected |
AbstractPlexusIoArchiveResourceCollection() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.Iterator<PlexusIoResource> |
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<PlexusIoResource> |
getResources()
Returns an iterator over the resources in the collection.
|
void |
setFile(java.io.File file)
Sets the zip file
|
Stream |
stream()
Returns the resources as a stream.
|
getExcludes, getFileMappers, getFileSelectors, getIncludes, getInputStream, getName, getName, getPrefix, getStreamTransformer, isCaseSensitive, isIncludingEmptyDirectories, isSelected, isUsingDefaultExcludes, iterator, resolve, setCaseSensitive, setExcludes, setFileMappers, setFileSelectors, setIncludes, setIncludingEmptyDirectories, setPrefix, setStreamTransformer, setUsingDefaultExcludes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputStream, getName, isConcurrentAccessSupported, resolve
protected AbstractPlexusIoArchiveResourceCollection()
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<PlexusIoResource> getEntries() throws java.io.IOException
java.io.IOException
- an IOException, dohpublic java.util.Iterator<PlexusIoResource> getResources() throws java.io.IOException
PlexusIoResourceCollection
getResources
in interface PlexusIoResourceCollection
java.io.IOException
- .public Stream stream()
PlexusIoResourceCollection
stream
in interface PlexusIoResourceCollection
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
- .