package org.apache.commons.vfs2.provider.gzip;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import org.apache.commons.vfs2.Capability;
import org.apache.commons.vfs2.FileName;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystem;
import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.FileSystemOptions;
import org.apache.commons.vfs2.provider.compressed.CompressedFileFileProvider;
public class GzipFileProvider extends CompressedFileFileProvider {
protected static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays
.asList(new Capability[] { Capability.GET_LAST_MODIFIED, Capability.GET_TYPE, Capability.LIST_CHILDREN,
Capability.WRITE_CONTENT, Capability.READ_CONTENT, Capability.URI, Capability.COMPRESS }));
public GzipFileProvider() {
super();
}
@Override
protected FileSystem createFileSystem(final FileName name, final FileObject file,
final FileSystemOptions fileSystemOptions) throws FileSystemException {
return new GzipFileSystem(name, file, fileSystemOptions);
}
@Override
public Collection<Capability> getCapabilities() {
return capabilities;
}
}