|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjste.template.FileRepository
public class FileRepository
The FileRepository implements the Repository interface on the file system. A FileRepository instance is created for a specific directory and holds files in that directory's subtree.
| Constructor Summary | |
|---|---|
FileRepository(java.lang.String rootDirectory)
Construct a FileRepository representing all the files in the directory tree rooted at the given directory. |
|
| Method Summary | |
|---|---|
java.lang.String |
getResource(java.lang.String fileName)
Return the content of the file with the specified name in the repository. |
java.util.Date |
lastModifiedTime(java.lang.String fileName)
Return the last modified time of the file with the specified name in the repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileRepository(java.lang.String rootDirectory)
| Method Detail |
|---|
public java.lang.String getResource(java.lang.String fileName)
throws java.io.IOException
getResource in interface RepositoryfileName - the name of the file relative to the FileRepository's root directory.
java.io.IOException
public java.util.Date lastModifiedTime(java.lang.String fileName)
throws java.io.IOException
lastModifiedTime in interface RepositoryfileName - the name of the file relative to the FileRepository's root directory.
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||