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 |
identityTransformerDEFAULT_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, setUsingDefaultExcludesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputStream, getName, isConcurrentAccessSupported, resolveprotected AbstractPlexusIoArchiveResourceCollection()
public void setFile(java.io.File file)
setFile in interface PlexusIoArchivedResourceCollectionpublic java.io.File getFile()
getFile in interface PlexusIoArchivedResourceCollectionprotected 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
PlexusIoResourceCollectiongetResources in interface PlexusIoResourceCollectionjava.io.IOException - .public Stream stream()
PlexusIoResourceCollectionstream in interface PlexusIoResourceCollectionpublic long getLastModified()
throws java.io.IOException
PlexusIoResourceCollectiongetLastModified in interface PlexusIoResourceCollectiongetLastModified in class AbstractPlexusIoResourceCollectionPlexusIoResource.UNKNOWN_MODIFICATION_DATE,
if the collections last modification time is unknown,
otherwise the last modification time in milliseconds.java.io.IOException - .