Package nl.knaw.dans.layerstore
Class TarArchiveProvider
java.lang.Object
nl.knaw.dans.layerstore.TarArchiveProvider
- All Implemented Interfaces:
ArchiveProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateArchive
(long layerId) Create a newArchive
instance for the given layer ID.boolean
exists
(long layerId) Check if an archive exists at the given path.List all archived layer IDs.
-
Constructor Details
-
TarArchiveProvider
-
-
Method Details
-
createArchive
Description copied from interface:ArchiveProvider
Create a newArchive
instance for the given layer ID.- Specified by:
createArchive
in interfaceArchiveProvider
- Parameters:
layerId
- the layer ID- Returns:
- the new archive
-
exists
public boolean exists(long layerId) Description copied from interface:ArchiveProvider
Check if an archive exists at the given path.- Specified by:
exists
in interfaceArchiveProvider
- Parameters:
layerId
- the layer ID- Returns:
- true if the archive exists, false otherwise
-
listArchivedLayers
Description copied from interface:ArchiveProvider
List all archived layer IDs.- Specified by:
listArchivedLayers
in interfaceArchiveProvider
- Returns:
- a list of layer IDs for which archives exist
- Throws:
IOException
-