|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.util.io.DirectoryStreamHandler
public final class DirectoryStreamHandler
Handles resources stored in a directory.
Constructor Summary | |
---|---|
DirectoryStreamHandler(File rootDir) Default constructor. |
Method Summary | |
---|---|
InputStream |
openToRead(String resourceId) Opens a stream to the given resource for reading. |
OutputStream |
openToWrite(String resourceId) Opens a stream to the given resource for writing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryStreamHandler(File rootDir)
rootDir
- the root directory within which the resources are stored.
Method Detail |
---|
public InputStream openToRead(String resourceId) throws IOException
openToRead
in interface
StreamHandler
resourceId
- the identifier of the resource that should be opened.
de.smartics.util.io.StreamHandler#open(java.lang.String)
IOException
- on any problem opening the resource.
public OutputStream openToWrite(String resourceId) throws IOException
openToWrite
in interface
StreamHandler
resourceId
- the identifier of the resource that should be opened.
StreamHandler.openToWrite(java.lang.String)
IOException
- on any problem opening the resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |