1 16 package org.apache.commons.vfs; 17 18 25 public interface FileName extends Comparable 26 { 27 30 public final char SEPARATOR_CHAR = '/'; 31 32 35 public final String SEPARATOR = "/"; 36 37 40 public final String ROOT_PATH = "/"; 41 42 51 public String getBaseName(); 52 53 63 public String getPath(); 64 65 79 public String getPathDecoded() throws FileSystemException; 80 81 87 public String getExtension(); 88 89 94 public int getDepth(); 95 96 99 public String getScheme(); 100 101 104 public String getURI(); 105 106 109 public String getRootURI(); 110 111 114 public FileName getRoot(); 115 116 123 public FileName getParent(); 124 125 133 135 144 147 154 public String getRelativeName(FileName name) throws FileSystemException; 155 156 159 public boolean isAncestor(FileName ancestor); 160 161 164 public boolean isDescendent(FileName descendent); 165 166 169 public boolean isDescendent(FileName descendent, NameScope nameScope); 170 171 184 public FileType getType(); 185 } 186 | Popular Tags |