Package marauroa.common.io
Class WebstartPersistence
java.lang.Object
marauroa.common.io.Persistence
marauroa.common.io.WebstartPersistence
Persitence with webstart
- Author:
- hendrik
-
Constructor Summary
-
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
-
Constructor Details
-
WebstartPersistence
public WebstartPersistence()Creates a instance of class
-
-
Method Details
-
getInputStream
public InputStream getInputStream(boolean relativeToHome, String basedir, String filename) throws IOExceptionGets an input stream to this "virtual" file- Specified by:
getInputStream
in classPersistence
- Parameters:
filename
- filename (without path)relativeToHome
- should this file be placed below the users home directory?basedir
- directory prefix which is ignore in webstart environment- Returns:
- InputStream
- Throws:
IOException
- on io error
-
getOutputStream
public OutputStream getOutputStream(boolean relativeToHome, String basedir, String filename) throws IOExceptionGets an output stream to this "virtual" file- Specified by:
getOutputStream
in classPersistence
- Parameters:
filename
- filename (without path)relativeToHome
- should this file be placed below the users home directory?basedir
- directory prefix which is ignore in webstart environment- Returns:
- InputStream
- Throws:
IOException
- on io error
-