public abstract class AbstractPlexusIoArchiveResourceCollection extends AbstractPlexusIoResourceCollection implements PlexusIoArchivedResourceCollection
PlexusIoFileResourceCollection
for
zip files, tar files, etc.identityTransformer
DEFAULT_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, setUsingDefaultExcludes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputStream, getName, isConcurrentAccessSupported, resolve
forEach, iterator, spliterator
protected AbstractPlexusIoArchiveResourceCollection()
public void setFile(File file)
setFile
in interface PlexusIoArchivedResourceCollection
public File getFile()
getFile
in interface PlexusIoArchivedResourceCollection
protected abstract Iterator<PlexusIoResource> getEntries() throws IOException
IOException
- an IOException, dohpublic Iterator<PlexusIoResource> getResources() throws IOException
PlexusIoResourceCollection
getResources
in interface PlexusIoResourceCollection
IOException
- .public Stream stream()
PlexusIoResourceCollection
stream
in interface PlexusIoResourceCollection
public long getLastModified() throws 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.IOException
- .Copyright © 2001–2018 Codehaus Plexus. All rights reserved.