|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileStorage
Represent a FileStorage where generated files can be stored. File paths must be specified in UNIX style, i.e. with '/' used for separating directories. File paths must begin with a '/', they are all relative to the location set by the open() method. A FileStorage implementation must have a public no-arg constructor, to enable instantiation with Class.newInstance().
| Method Summary | |
|---|---|
void |
close()
Close the file system and release any resources it holds. |
OutputHandler |
createFile(java.lang.String path)
Create a new file, or overwrite an existing file. |
void |
deleteFile(java.lang.String path)
Deletes a file. |
long |
fileLastModified(java.lang.String path)
Check if a file exists and when it was last modified. |
boolean |
isReentrant()
Ask if this file storage is reentrant. |
boolean |
needPassword()
Ask if this file storage needs a password. |
void |
open(java.lang.String url,
LagoonContext context,
java.lang.String password)
Open and initialize this file storage. |
| Method Detail |
|---|
boolean needPassword()
boolean isReentrant()
void open(java.lang.String url,
LagoonContext context,
java.lang.String password)
throws java.net.MalformedURLException,
java.io.IOException,
AuthenticationException
url - The URL to the file storage,context - the LagoonContext.password - the password nessesary to access this file storage,
or null if no password is nessesary.
AuthenticationException - if password was needed but incorrect.
java.net.MalformedURLException
java.io.IOException
void close()
throws java.io.IOException
java.io.IOException
long fileLastModified(java.lang.String path)
throws java.io.IOException
path - path to the file
java.io.IOException
OutputHandler createFile(java.lang.String path)
throws java.io.IOException
path - path to the file
java.io.IOException
void deleteFile(java.lang.String path)
throws java.io.IOException
path - path to the file
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||