1 16 package org.apache.commons.vfs; 17 18 import java.io.File ; 19 20 25 public interface FileSystem 26 { 27 30 FileObject getRoot() throws FileSystemException; 31 32 35 FileName getRootName(); 36 37 46 boolean hasCapability(Capability capability); 47 48 53 FileObject getParentLayer() throws FileSystemException; 54 55 70 Object getAttribute(String attrName) throws FileSystemException; 71 72 82 void setAttribute(String attrName, Object value) 83 throws FileSystemException; 84 85 91 FileObject resolveFile(FileName name) throws FileSystemException; 92 93 99 FileObject resolveFile(String name) throws FileSystemException; 100 101 107 void addListener(FileObject file, FileListener listener); 108 109 115 void removeListener(FileObject file, FileListener listener); 116 117 128 void addJunction(String junctionPoint, FileObject targetFile) 129 throws FileSystemException; 130 131 137 void removeJunction(String junctionPoint) throws FileSystemException; 138 139 155 File replicateFile(FileObject file, FileSelector selector) 156 throws FileSystemException; 157 158 161 FileSystemOptions getFileSystemOptions(); 162 163 166 FileSystemManager getFileSystemManager(); 167 168 173 double getLastModTimeAccuracy(); 174 } 175 | Popular Tags |