|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.portal.serialization.persistency.sub.SubDirectory
public class SubDirectory
IDirectory
implementation that represents a subdirectory of another IDirectory
.
Constructor Summary | |
---|---|
SubDirectory(IDirectory directory,
java.lang.String path)
|
Method Summary | |
---|---|
void |
close()
|
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubDirectory(IDirectory directory, java.lang.String path)
Method Detail |
---|
public java.io.InputStream getInputStream(java.lang.String filePath) throws java.io.FileNotFoundException, java.io.IOException
IDirectory
InputStream
to a repository file.
getInputStream
in interface IDirectory
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.public java.io.OutputStream getOutputStream(java.lang.String filePath) throws java.io.IOException
IDirectory
OutputStream
to a repository file.
getOutputStream
in interface IDirectory
filePath
- path to the file.
OutputStream
to the new file
java.io.IOException
- if an I/O error occurs.public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
public boolean exists(java.lang.String filePath) throws java.io.IOException
IDirectory
exists
in interface IDirectory
filePath
- path to the file to be checked.
java.io.IOException
- if an I/O error occurs.public java.lang.String getDescription()
IDirectory
getDescription
in interface IDirectory
public void delete() throws java.io.IOException
IDirectory
delete
in interface IDirectory
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 |