net.java.truevfs.driver.tar.TarDriverMapModifier Maven / Gradle / Ivy
/*
* Copyright (C) 2005-2012 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truevfs.driver.tar;
import java.util.Map;
import javax.annotation.concurrent.Immutable;
import net.java.truevfs.comp.tardriver.TarDriver;
import net.java.truevfs.kernel.spec.FsDriver;
import net.java.truevfs.kernel.spec.FsScheme;
import net.java.truevfs.kernel.spec.spi.FsDriverMapModifier;
/**
* Maps a file system driver for accessing the TAR file format.
* The modified map will contain the following entries:
*
URI Schemes / Archive File Extensions
File System Driver Class
{@code tar}
{@link TarDriver}
*
* @author Christian Schlichtherle
*/
@Immutable
public final class TarDriverMapModifier extends FsDriverMapModifier {
@Override
public Map apply(final Map map) {
final FsDriver driver = new TarDriver();
map.put(FsScheme.create("tar"), driver);
return map;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy