Class WebstartPersistence

java.lang.Object
marauroa.common.io.Persistence
marauroa.common.io.WebstartPersistence

public class WebstartPersistence extends Persistence
Persitence with webstart
Author:
hendrik
  • Constructor Details

    • WebstartPersistence

      public WebstartPersistence()
      Creates a instance of class
  • Method Details

    • getInputStream

      public InputStream getInputStream(boolean relativeToHome, String basedir, String filename) throws IOException
      Gets an input stream to this "virtual" file
      Specified by:
      getInputStream in class Persistence
      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 IOException
      Gets an output stream to this "virtual" file
      Specified by:
      getOutputStream in class Persistence
      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