Class FileStorage

java.lang.Object
org.eolang.opeo.storage.FileStorage
All Implemented Interfaces:
Storage

public final class FileStorage extends Object implements Storage
File storage.
Since:
0.2
  • Constructor Details

    • FileStorage

      public FileStorage(Path xmirs, Path output)
      Constructor.
      Parameters:
      xmirs - Path to the source folder.
      output - Path to the output folder.
  • Method Details

    • all

      public Stream<XmirEntry> all()
      Description copied from interface: Storage
      Get all XMIRs.
      Specified by:
      all in interface Storage
      Returns:
      All XMIRs
    • save

      public void save(XmirEntry xmir)
      Description copied from interface: Storage
      Save XMIR.
      Specified by:
      save in interface Storage
      Parameters:
      xmir - XMIR to save