package org.apache.commons.vfs2.provider.bzip2;
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 Bzip2FileProvider 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.READ_CONTENT, Capability.WRITE_CONTENT, Capability.URI, Capability.COMPRESS }));
public Bzip2FileProvider() {
super();
}
@Override
protected FileSystem createFileSystem(final FileName name, final FileObject file,
final FileSystemOptions fileSystemOptions) throws FileSystemException {
return new Bzip2FileSystem(name, file, fileSystemOptions);
}
@Override
public Collection<Capability> getCapabilities() {
return capabilities;
}
}