1 16 package org.apache.commons.vfs.provider.gzip; 17 18 import org.apache.commons.vfs.FileName; 19 import org.apache.commons.vfs.FileObject; 20 import org.apache.commons.vfs.FileSystemException; 21 import org.apache.commons.vfs.FileSystemOptions; 22 import org.apache.commons.vfs.provider.compressed.CompressedFileFileSystem; 23 24 import java.util.Collection ; 25 26 31 public class GzipFileSystem extends CompressedFileFileSystem 32 { 33 protected GzipFileSystem(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) throws FileSystemException 34 { 35 super(rootName, parentLayer, fileSystemOptions); 36 } 37 38 protected FileObject createFile(FileName name) throws FileSystemException 39 { 40 return new GzipFileObject(name, getParentLayer(), this); 41 } 42 43 protected void addCapabilities(final Collection caps) 44 { 45 caps.addAll(GzipFileProvider.capabilities); 46 } 47 } 48 | Popular Tags |