All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.schlichtherle.truezip.fs.archive.tar.TarDriverService Maven / Gradle / Ivy

Go to download

The file system driver family for TAR and related archive file types. Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.

There is a newer version: 7.7.10
Show newest version
/*
 * Copyright (C) 2005-2013 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package de.schlichtherle.truezip.fs.archive.tar;

import de.schlichtherle.truezip.fs.FsDriver;
import de.schlichtherle.truezip.fs.FsScheme;
import de.schlichtherle.truezip.fs.spi.FsDriverService;
import de.schlichtherle.truezip.socket.sl.IOPoolLocator;
import java.util.Map;
import javax.annotation.concurrent.Immutable;

/**
 * An immutable container of a map of drivers for the TAR file format.
 * The map provided by this service consists of the following entries:
 * 

URI Schemes / Archive File Suffixes File System Driver Class
{@code tar} {@link de.schlichtherle.truezip.fs.archive.tar.TarDriver}
{@code tar.bz2}, {@code tb2}, {@code tbz} {@link de.schlichtherle.truezip.fs.archive.tar.TarBZip2Driver}
{@code tar.gz}, {@code tgz} {@link de.schlichtherle.truezip.fs.archive.tar.TarGZipDriver}
{@code tar.xz}, {@code txz} {@link de.schlichtherle.truezip.fs.archive.tar.TarXZDriver}
* * @author Christian Schlichtherle */ @Immutable public final class TarDriverService extends FsDriverService { private static final Map DRIVERS = newMap(new Object[][] { { "tar", new TarDriver(IOPoolLocator.SINGLETON) }, { "tar.bz2|tb2|tbz", new TarBZip2Driver(IOPoolLocator.SINGLETON) }, { "tar.gz|tgz", new TarGZipDriver(IOPoolLocator.SINGLETON) }, { "tar.xz|txz", new TarXZDriver(IOPoolLocator.SINGLETON) }, }); @Override @SuppressWarnings("ReturnOfCollectionOrArrayField") public Map get() { return DRIVERS; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy