|
||||||||||
| 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
public abstract class 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 String |
getDefaultExtension()
|
File |
getFile()
Returns the archive file |
protected abstract InputStream |
getInputStream(File file)
|
long |
getLastModified()
Returns the collections last modification time. |
protected String |
getName(File file)
|
String |
getName(PlexusIoResource resource)
Returns the resources suggested name. |
String |
getPath()
|
Iterator |
getResources()
Returns an iterator over the resources in the collection. |
void |
setFile(File file)
Sets the arcihve file |
void |
setPath(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 File getFile()
PlexusIoArchivedResourceCollection
getFile in interface PlexusIoArchivedResourceCollectionpublic void setFile(File file)
PlexusIoArchivedResourceCollection
setFile in interface PlexusIoArchivedResourceCollectionpublic String getPath()
public void setPath(String path)
public Iterator getResources()
throws IOException
PlexusIoResourceCollection
getResources in interface PlexusIoResourceCollectionIOException
protected String getName(File file)
throws IOException
IOExceptionprotected abstract String getDefaultExtension()
protected abstract InputStream getInputStream(File file)
throws IOException
IOException
public String getName(PlexusIoResource resource)
throws IOException
PlexusIoResourceCollection
getName in interface PlexusIoResourceCollectionresource - A resource, which has been obtained by
calling PlexusIoResourceCollection.getResources().
IOException
public long getLastModified()
throws IOException
PlexusIoResourceCollection
getLastModified in interface PlexusIoResourceCollectionPlexusIoResource.UNKNOWN_MODIFICATION_DATE,
if the collections last modification time is unknown,
otherwise the last modification time in milliseconds.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||