|
Project Wonder 5.0.0.8795 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecter.extensions.foundation.ERXFileRepository
public class ERXFileRepository
Allows you to store a large amount of files and folders without the hassles
of directory size limitations. The files are stored by an abstract
"key" which is by default a ERXRandomGUID. Under the root
directory, there will be directories for the first two characters
and under these again directories for the next two characters of the
GUID.
| Field Summary | |
|---|---|
protected File |
_root
|
| Constructor Summary | |
|---|---|
protected |
ERXFileRepository(File root)
Private constructor, as we use the factory methods to create instances. |
| Method Summary | |
|---|---|
static ERXFileRepository |
addRepository(String name,
ERXFileRepository repository)
Adds a repository under the given name and the given root directory. |
static ERXFileRepository |
addRepository(String name,
File root)
Adds a repository under the given name and the given root directory. |
File |
createFile()
Returns a new file in the repository. |
File |
getFile(String id)
Returns a file for a |
File |
getRoot()
Returns the root directory for the repository. |
boolean |
hasFile(String id)
Returns true if the file is present in the repository and also exists. |
static ERXFileRepository |
respository(String name)
Returns the repository that is registered under the given name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File _root
| Constructor Detail |
|---|
protected ERXFileRepository(File root)
root - | Method Detail |
|---|
public File createFile()
public File getFile(String id)
id - public boolean hasFile(String id)
id - public File getRoot()
public static ERXFileRepository respository(String name)
name -
public static ERXFileRepository addRepository(String name,
File root)
name - root -
public static ERXFileRepository addRepository(String name,
ERXFileRepository repository)
name - repository -
|
Last updated: Fri, Jan 9, 2009 04:35 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||