|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.components.io.resources.PlexusIoCompressedFileResourceCollection
Abstract base class for compressed files, aka singleton resource collections.
Field Summary |
Fields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection |
DEFAULT_ROLE_HINT, ROLE |
Constructor Summary | |
PlexusIoCompressedFileResourceCollection()
|
Method Summary | |
protected abstract java.lang.String |
getDefaultExtension()
|
java.io.File |
getFile()
Returns the archive file |
protected abstract java.io.InputStream |
getInputStream(java.io.File file)
|
long |
getLastModified()
Returns the collections last modification time. |
protected java.lang.String |
getName(java.io.File file)
|
java.lang.String |
getName(PlexusIoResource resource)
Returns the resources suggested name. |
java.lang.String |
getPath()
|
java.util.Iterator |
getResources()
Returns an iterator over the resources in the collection. |
void |
setFile(java.io.File file)
Sets the arcihve file |
void |
setPath(java.lang.String path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlexusIoCompressedFileResourceCollection()
Method Detail |
public java.io.File getFile()
PlexusIoArchivedResourceCollection
getFile
in interface PlexusIoArchivedResourceCollection
public void setFile(java.io.File file)
PlexusIoArchivedResourceCollection
setFile
in interface PlexusIoArchivedResourceCollection
public java.lang.String getPath()
public void setPath(java.lang.String path)
public java.util.Iterator getResources() throws java.io.IOException
PlexusIoResourceCollection
getResources
in interface PlexusIoResourceCollection
java.io.IOException
protected java.lang.String getName(java.io.File file) throws java.io.IOException
java.io.IOException
protected abstract java.lang.String getDefaultExtension()
protected abstract java.io.InputStream getInputStream(java.io.File file) throws java.io.IOException
java.io.IOException
public java.lang.String getName(PlexusIoResource resource) throws java.io.IOException
PlexusIoResourceCollection
getName
in interface PlexusIoResourceCollection
resource
- A resource, which has been obtained by
calling PlexusIoResourceCollection.getResources()
.
java.io.IOException
public long getLastModified() throws java.io.IOException
PlexusIoResourceCollection
getLastModified
in interface PlexusIoResourceCollection
PlexusIoResource.UNKNOWN_MODIFICATION_DATE
,
if the collections last modification time is unknown,
otherwise the last modification time in milliseconds.
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |