public class DirectoryRepository extends Repository
| Modifier and Type | Class and Description |
|---|---|
class |
DirectoryRepository.Enumerator
Inner class for enumerating the files in the directory.
|
| Modifier and Type | Field and Description |
|---|---|
protected File |
dir
The directory.
|
protected String |
dirString
Unambiguous representation of directory for error messages.
|
forms| Constructor and Description |
|---|
DirectoryRepository(String name,
String location)
Construct a directory repository with support for the default
forms of data.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
add, getForms, getForms, getLocation, getName, open, open, save, saveprotected File dir
protected String dirString
public DirectoryRepository(String name, String location) throws BadRepositoryException, IOException
BadRepositoryExceptionIOExceptionpublic Enumeration getEnumeration() throws BadRepositoryException, SecurityException
getEnumeration in class RepositoryBadRepositoryExceptionSecurityExceptionprotected String fullName(String id)
fullName in class Repositorypublic static void main(String[] args) throws BadRepositoryException, IOException
BadRepositoryExceptionIOExceptionCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.