Class TarArchiveProvider

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

public class TarArchiveProvider extends Object implements ArchiveProvider
  • Constructor Details

    • TarArchiveProvider

      public TarArchiveProvider(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