Class FileSystemPersistence

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

public class FileSystemPersistence extends Persistence
Normal persistence using files
Author:
hendrik
  • Method Details

    • getInputStream

      public InputStream getInputStream(boolean relativeToHome, String basedir, String filename) throws IOException
      Description copied from class: Persistence
      Gets an input stream to this "virtual" file
      Specified by:
      getInputStream in class Persistence
      Parameters:
      relativeToHome - should this file be placed below the users home directory?
      basedir - directory prefix which is ignore in webstart environment
      filename - filename (without path)
      Returns:
      InputStream
      Throws:
      IOException - on IO error
    • getOutputStream

      public OutputStream getOutputStream(boolean relativeToHome, String basedir, String filename) throws IOException
      Description copied from class: Persistence
      Gets an output stream to this "virtual" file
      Specified by:
      getOutputStream in class Persistence
      Parameters:
      relativeToHome - should this file be placed below the users home directory?
      basedir - directory prefix which is ignore in webstart environment
      filename - filename (without path)
      Returns:
      OutputStream
      Throws:
      IOException - on IO error