1 16 package org.apache.commons.vfs.provider.local; 17 18 import org.apache.commons.vfs.FileName; 19 import org.apache.commons.vfs.FileType; 20 import org.apache.commons.vfs.provider.AbstractFileName; 21 22 27 public class LocalFileName extends AbstractFileName 28 { 29 private final String rootFile; 30 31 protected LocalFileName(final String scheme, 32 final String rootFile, 33 final String path, 34 final FileType type) 35 { 36 super(scheme, path, type); 37 this.rootFile = rootFile; 38 } 39 40 43 public String getRootFile() 44 { 45 return rootFile; 46 } 47 48 51 public FileName createName(final String path, FileType type) 52 { 53 return new LocalFileName(getScheme(), rootFile, path, type); 54 } 55 56 59 protected void appendRootUri(final StringBuffer buffer) 60 { 61 buffer.append(getScheme()); 62 buffer.append("://"); 63 buffer.append(rootFile); 64 } 65 } 66 | Popular Tags |