mirror of
https://github.com/kmitresse/Compo-Service-Log-Project.git
synced 2026-07-09 12:07:45 +00:00
feat: Add World-Cities Dataset
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { Archive, ZipArchive, ArchiveType, GzipArchive } from "./";
|
||||
import { Archive, ZipArchive, ArchiveType, GzipArchive, NoneArchive } from "./";
|
||||
|
||||
class ArchiveFactory {
|
||||
static getArchive(archiveType: ArchiveType): Archive {
|
||||
if (archiveType === ArchiveType.ZIP) return ZipArchive.instance;
|
||||
if (archiveType === ArchiveType.GZIP) return GzipArchive.instance;
|
||||
if (archiveType === ArchiveType.NONE) return NoneArchive.instance;
|
||||
|
||||
throw new Error("Unsupported archive type");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user