|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.util.archive.impl.FileArchiveImpl
public class FileArchiveImpl
An implementation for the IFileArchive class.
| Constructor Summary | |
|---|---|
FileArchiveImpl()
Constructor with no arguments. |
|
FileArchiveImpl(File file)
Constructs a file archive wit the given file. |
|
| Method Summary | |
|---|---|
boolean |
close()
|
Iterator<String> |
getEntries()
|
File |
getFile()
|
IArchiveMetadata |
getMetadata()
|
String |
getName()
|
URL |
getResource(String resourceName)
|
Iterator<URL> |
getResources()
|
Iterator<URL> |
getResources(String resourceName)
|
URL |
getURL()
|
void |
setFile(File file)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileArchiveImpl()
public FileArchiveImpl(File file)
file - the given file| Method Detail |
|---|
public void setFile(File file)
setFile in interface IFileArchivepublic File getFile()
getFile in interface IFileArchivepublic boolean close()
close in interface IArchivepublic IArchiveMetadata getMetadata()
getMetadata in interface IArchivepublic String getName()
getName in interface IArchive
public URL getResource(String resourceName)
throws ArchiveException
getResource in interface IArchiveArchiveException
public Iterator<URL> getResources()
throws ArchiveException
getResources in interface IArchiveArchiveException
public Iterator<URL> getResources(String resourceName)
throws ArchiveException
getResources in interface IArchiveArchiveException
public URL getURL()
throws ArchiveException
getURL in interface IArchiveArchiveException
public Iterator<String> getEntries()
throws ArchiveException
getEntries in interface IArchiveArchiveExceptionpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||