|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.Repository
visad.data.DirectoryRepository
public class DirectoryRepository
A data object repository implemented as files in a local directory.
| Nested Class Summary | |
|---|---|
class |
DirectoryRepository.Enumerator
Inner class for enumerating the files in the directory. |
| Field Summary | |
|---|---|
protected File |
dir
The directory. |
protected String |
dirString
Unambiguous representation of directory for error messages. |
| Fields inherited from class visad.data.Repository |
|---|
forms |
| Constructor Summary | |
|---|---|
DirectoryRepository(String name,
String location)
Construct a directory repository with support for the default forms of data. |
|
| Method Summary | |
|---|---|
protected String |
fullName(String id)
Return the fully-qualified name of a persistent data object. |
Enumeration |
getEnumeration()
Return an enumeration of the data objects in this repository. |
static void |
main(String[] args)
Test this class. |
| Methods inherited from class visad.data.Repository |
|---|
add, getForms, getForms, getLocation, getName, open, open, save, save |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File dir
protected String dirString
| Constructor Detail |
|---|
public DirectoryRepository(String name,
String location)
throws BadRepositoryException,
IOException
BadRepositoryException
IOException| Method Detail |
|---|
public Enumeration getEnumeration()
throws BadRepositoryException,
SecurityException
getEnumeration in class RepositoryBadRepositoryException
SecurityExceptionprotected String fullName(String id)
fullName in class Repository
public static void main(String[] args)
throws BadRepositoryException,
IOException
BadRepositoryException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||