Package marauroa.common.io
Class FileSystemPersistence
java.lang.Object
marauroa.common.io.Persistence
marauroa.common.io.FileSystemPersistence
Normal persistence using files
- Author:
- hendrik
-
Method Summary
Modifier and TypeMethodDescriptiongetInputStream(boolean relativeToHome, String basedir, String filename)
Gets an input stream to this "virtual" filegetOutputStream(boolean relativeToHome, String basedir, String filename)
Gets an output stream to this "virtual" fileMethods inherited from class marauroa.common.io.Persistence
get
-
Method Details
-
getInputStream
public InputStream getInputStream(boolean relativeToHome, String basedir, String filename) throws IOExceptionDescription copied from class:Persistence
Gets an input stream to this "virtual" file- Specified by:
getInputStream
in classPersistence
- Parameters:
relativeToHome
- should this file be placed below the users home directory?basedir
- directory prefix which is ignore in webstart environmentfilename
- filename (without path)- Returns:
- InputStream
- Throws:
IOException
- on IO error
-
getOutputStream
public OutputStream getOutputStream(boolean relativeToHome, String basedir, String filename) throws IOExceptionDescription copied from class:Persistence
Gets an output stream to this "virtual" file- Specified by:
getOutputStream
in classPersistence
- Parameters:
relativeToHome
- should this file be placed below the users home directory?basedir
- directory prefix which is ignore in webstart environmentfilename
- filename (without path)- Returns:
- OutputStream
- Throws:
IOException
- on IO error
-