1 16 package org.apache.commons.vfs; 17 18 import java.net.URL ; 19 import java.util.List ; 20 21 69 public interface FileObject 70 { 71 74 public FileName getName(); 75 76 79 public URL getURL() throws FileSystemException; 80 81 87 public boolean exists() throws FileSystemException; 88 89 95 public boolean isHidden() throws FileSystemException; 96 97 103 public boolean isReadable() throws FileSystemException; 104 105 111 public boolean isWriteable() throws FileSystemException; 112 113 119 public FileType getType() throws FileSystemException; 120 121 128 public FileObject getParent() throws FileSystemException; 129 130 135 public FileSystem getFileSystem(); 136 137 146 public FileObject[] getChildren() throws FileSystemException; 147 148 158 public FileObject getChild(String name) throws FileSystemException; 159 160 168 public FileObject resolveFile(String name, NameScope scope) 169 throws FileSystemException; 170 171 180 public FileObject resolveFile(String path) throws FileSystemException; 181 182 189 public FileObject[] findFiles(FileSelector selector) throws FileSystemException; 190 191 199 public void findFiles(FileSelector selector, 200 boolean depthwise, 201 List selected) throws FileSystemException; 202 203 212 public boolean delete() throws FileSystemException; 213 214 226 public int delete(FileSelector selector) throws FileSystemException; 227 228 237 public void createFolder() throws FileSystemException; 238 239 248 public void createFile() throws FileSystemException; 249 250 264 public void copyFrom(FileObject srcFile, FileSelector selector) 265 throws FileSystemException; 266 267 275 public void moveTo(FileObject destFile) 276 throws FileSystemException; 277 278 284 public boolean canRenameTo(FileObject newfile); 285 286 297 public FileContent getContent() throws FileSystemException; 298 299 309 public void close() throws FileSystemException; 310 } 311 | Popular Tags |