Class ArchiveDirectories

java.lang.Object
org.cy3sbml.archive.ArchiveDirectories

public final class ArchiveDirectories extends Object
The directories COMBINE archives are unpacked into: one new directory per import below a root, so that the SBML files of an archive can reference each other by their relative paths. The directory of an import is deleted when the import is done, the root when the app stops.
  • Constructor Details

    • ArchiveDirectories

      public ArchiveDirectories(Path root)
      Parameters:
      root - the directory below which the archives are unpacked; created when the first archive is unpacked
  • Method Details

    • temporary

      public static ArchiveDirectories temporary()
      The directories below a root in the temporary directory of the system, one per process.
    • newDirectory

      public Path newDirectory(String archiveName) throws IOException
      A new, empty directory for the archive with the given file name.
      Throws:
      IOException
    • delete

      public void delete(Path directory)
      Deletes the directory of an archive with its files.
    • deleteAll

      public void deleteAll()
      Deletes the root with all unpacked archives.