|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDirectory
Abstraction of a file repository.
Method Summary | |
---|---|
void |
delete()
Delete the repository. |
boolean |
exists(java.lang.String filePath)
Check the existence of a file. |
java.lang.String |
getDescription()
Generate a general description of the directory, used mainly to compose exception messages. |
java.io.InputStream |
getInputStream(java.lang.String filePath)
Get an InputStream to a repository file. |
java.io.OutputStream |
getOutputStream(java.lang.String filePath)
Get an OutputStream to a repository file. |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
java.io.InputStream getInputStream(java.lang.String filePath) throws java.io.FileNotFoundException, java.io.IOException
InputStream
to a repository file.
filePath
- path to the file.
InputStream
to file found in specified filePath.
java.io.FileNotFoundException
- if no file was found in specified filePath.
java.io.IOException
- if an I/O error occurs.java.io.OutputStream getOutputStream(java.lang.String filePath) throws java.io.IOException
OutputStream
to a repository file.
filePath
- path to the file.
OutputStream
to the new file
java.io.IOException
- if an I/O error occurs.boolean exists(java.lang.String filePath) throws java.io.IOException
filePath
- path to the file to be checked.
java.io.IOException
- if an I/O error occurs.java.lang.String getDescription()
void delete() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |