Package nl.knaw.dans.layerstore
Class DmfTarArchiveProvider
java.lang.Object
nl.knaw.dans.layerstore.DmfTarArchiveProvider
- All Implemented Interfaces:
ArchiveProvider
An
ArchiveProvider that uses the dmftar command line tool to create and read DMF TAR archives.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateArchive(long layerId) Create a newArchiveinstance for the given layer ID.booleanexists(long layerId) Check if an archive exists at the given path.List all archived layer IDs.
-
Constructor Details
-
DmfTarArchiveProvider
-
-
Method Details
-
createArchive
Description copied from interface:ArchiveProviderCreate a newArchiveinstance for the given layer ID.- Specified by:
createArchivein interfaceArchiveProvider- Parameters:
layerId- the layer ID- Returns:
- the new archive
-
exists
public boolean exists(long layerId) Description copied from interface:ArchiveProviderCheck if an archive exists at the given path.- Specified by:
existsin interfaceArchiveProvider- Parameters:
layerId- the layer ID- Returns:
- true if the archive exists, false otherwise
-
listArchivedLayers
Description copied from interface:ArchiveProviderList all archived layer IDs.- Specified by:
listArchivedLayersin interfaceArchiveProvider- Returns:
- a list of layer IDs for which archives exist
- Throws:
IOException
-