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