Class ZipArchiveProvider

java.lang.Object
nl.knaw.dans.layerstore.ZipArchiveProvider
All Implemented Interfaces:
ArchiveProvider

public class ZipArchiveProvider extends Object implements ArchiveProvider
  • Constructor Details

    • ZipArchiveProvider

      public ZipArchiveProvider(Path archiveRoot)
  • Method Details

    • createArchive

      public Archive createArchive(String path)
      Description copied from interface: ArchiveProvider
      Create a new Archive instance.
      Specified by:
      createArchive in interface ArchiveProvider
      Parameters:
      path - the path to the archive file
      Returns:
      the new archive
    • exists

      public boolean exists(String path)
      Description copied from interface: ArchiveProvider
      Check if an archive exists at the given path.
      Specified by:
      exists in interface ArchiveProvider
      Parameters:
      path - the path to the archive file
      Returns:
      true if the archive exists, false otherwise