Class LocalFileStore

java.lang.Object
com.erudika.para.server.storage.LocalFileStore
All Implemented Interfaces:
com.erudika.para.core.storage.FileStore

public class LocalFileStore extends Object implements com.erudika.para.core.storage.FileStore
Stores files locally.
Author:
Alex Bogdanovski [[email protected]]
  • Constructor Details

    • LocalFileStore

      public LocalFileStore()
      No-args constructor.
    • LocalFileStore

      public LocalFileStore(String folder)
      Consturcts a new instance based on a given folder.
      Parameters:
      folder - the folder to store files in
  • Method Details

    • load

      public InputStream load(String path)
      Specified by:
      load in interface com.erudika.para.core.storage.FileStore
    • store

      public String store(String path, InputStream data)
      Specified by:
      store in interface com.erudika.para.core.storage.FileStore
    • delete

      public boolean delete(String path)
      Specified by:
      delete in interface com.erudika.para.core.storage.FileStore