public class PlexusIoProxyResourceCollection extends AbstractPlexusIoResourceCollection implements PlexusIOResourceCollectionWithAttributes
PlexusIoResourceCollection
for an archives contents.DEFAULT_ROLE_HINT, ROLE
Constructor and Description |
---|
PlexusIoProxyResourceCollection() |
Modifier and Type | Method and Description |
---|---|
protected FileSelector |
getDefaultFileSelector() |
long |
getLastModified()
Returns the collections last modification time.
|
String |
getName(PlexusIoResource resource)
Returns the resources suggested name.
|
Iterator<PlexusIoResource> |
getResources()
Returns an iterator over the resources in the collection.
|
PlexusIoResourceCollection |
getSrc()
Returns the archive to read.
|
void |
setDefaultAttributes(int uid,
String userName,
int gid,
String groupName,
int fileMode,
int dirMode)
Sets the file and directory attributes to use as defaults.
|
void |
setOverrideAttributes(int uid,
String userName,
int gid,
String groupName,
int fileMode,
int dirMode)
Sets the file and directory attributes to use as overrides.
|
void |
setSrc(PlexusIoResourceCollection src)
Sets the archive to read.
|
enableLogging, getExcludes, getFileMappers, getFileSelectors, getIncludes, getLogger, getPrefix, isCaseSensitive, isIncludingEmptyDirectories, isSelected, isUsingDefaultExcludes, setCaseSensitive, setExcludes, setFileMappers, setFileSelectors, setIncludes, setIncludingEmptyDirectories, setPrefix, setUsingDefaultExcludes
public void setSrc(PlexusIoResourceCollection src)
public PlexusIoResourceCollection getSrc()
protected FileSelector getDefaultFileSelector()
public Iterator<PlexusIoResource> getResources() throws IOException
PlexusIoResourceCollection
getResources
in interface PlexusIoResourceCollection
IOException
- .public String getName(PlexusIoResource resource) throws IOException
PlexusIoResourceCollection
getName
in interface PlexusIoResourceCollection
getName
in class AbstractPlexusIoResourceCollection
resource
- A resource, which has been obtained by
calling PlexusIoResourceCollection.getResources()
.IOException
- .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
- .public void setDefaultAttributes(int uid, String userName, int gid, String groupName, int fileMode, int dirMode)
PlexusIOResourceCollectionWithAttributes
setDefaultAttributes
in interface PlexusIOResourceCollectionWithAttributes
fileMode
- The octal mode to use for filesdirMode
- The octal mode to use for directoriespublic void setOverrideAttributes(int uid, String userName, int gid, String groupName, int fileMode, int dirMode)
PlexusIOResourceCollectionWithAttributes
setOverrideAttributes
in interface PlexusIOResourceCollectionWithAttributes
fileMode
- The octal mode to use for filesdirMode
- The octal mode to use for directoriesCopyright © 2001-2012 Codehaus. All Rights Reserved.