1 16 package org.apache.commons.vfs.provider.bzip2; 17 18 import org.apache.commons.vfs.Capability; 19 import org.apache.commons.vfs.FileName; 20 import org.apache.commons.vfs.FileObject; 21 import org.apache.commons.vfs.FileSystem; 22 import org.apache.commons.vfs.FileSystemException; 23 import org.apache.commons.vfs.FileSystemOptions; 24 import org.apache.commons.vfs.provider.compressed.CompressedFileFileProvider; 25 26 import java.util.Arrays ; 27 import java.util.Collection ; 28 import java.util.Collections ; 29 30 35 public class Bzip2FileProvider extends CompressedFileFileProvider 36 { 37 protected final static Collection capabilities = Collections.unmodifiableCollection(Arrays.asList(new Capability[] 38 { 39 Capability.GET_LAST_MODIFIED, 40 Capability.GET_TYPE, 41 Capability.LIST_CHILDREN, 42 Capability.READ_CONTENT, 43 Capability.WRITE_CONTENT, 44 Capability.URI, 45 Capability.COMPRESS 46 })); 47 48 public Bzip2FileProvider() 49 { 50 super(); 51 } 52 53 protected FileSystem createFileSystem(FileName name, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException 54 { 55 return new Bzip2FileSystem(name, file, fileSystemOptions); 56 } 57 58 public Collection getCapabilities() 59 { 60 return capabilities; 61 } 62 } 63 | Popular Tags |