public abstract class AbstractPlexusIoArchiveResourceCollection extends AbstractPlexusIoResourceCollection implements PlexusIoArchivedResourceCollection
PlexusIoFileResourceCollection for
zip files, tar files, etc.identityTransformerDEFAULT_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
|
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, resolveforEach, iterator, spliteratorprotected AbstractPlexusIoArchiveResourceCollection()
public void setFile(File file)
setFile in interface PlexusIoArchivedResourceCollectionpublic File getFile()
getFile in interface PlexusIoArchivedResourceCollectionprotected abstract Iterator<PlexusIoResource> getEntries() throws IOException
IOException - an IOException, dohpublic Iterator<PlexusIoResource> getResources() throws IOException
PlexusIoResourceCollectiongetResources in interface PlexusIoResourceCollectionIOException - .public Stream stream()
PlexusIoResourceCollectionstream in interface PlexusIoResourceCollectionpublic long getLastModified()
throws 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.IOException - .Copyright © 2001–2018 Codehaus Plexus. All rights reserved.