|
|||||||||
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 java.io.File |
dir
The directory. |
protected java.lang.String |
dirString
Unambiguous representation of directory for error messages. |
Fields inherited from class visad.data.Repository |
---|
forms |
Constructor Summary | |
---|---|
DirectoryRepository(java.lang.String name,
java.lang.String location)
Construct a directory repository with support for the default forms of data. |
Method Summary | |
---|---|
protected java.lang.String |
fullName(java.lang.String id)
Return the fully-qualified name of a persistent data object. |
java.util.Enumeration |
getEnumeration()
Return an enumeration of the data objects in this repository. |
static void |
main(java.lang.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 java.io.File dir
protected java.lang.String dirString
Constructor Detail |
---|
public DirectoryRepository(java.lang.String name, java.lang.String location) throws BadRepositoryException, java.io.IOException
BadRepositoryException
java.io.IOException
Method Detail |
---|
public java.util.Enumeration getEnumeration() throws BadRepositoryException, java.lang.SecurityException
getEnumeration
in class Repository
BadRepositoryException
java.lang.SecurityException
protected java.lang.String fullName(java.lang.String id)
fullName
in class Repository
public static void main(java.lang.String[] args) throws BadRepositoryException, java.io.IOException
BadRepositoryException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |