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 21 26 public class WindowsFileName extends LocalFileName 27 { 28 protected WindowsFileName(final String scheme, 29 final String rootFile, 30 final String path, 31 final FileType type) 32 { 33 super(scheme, rootFile, path, type); 34 } 35 36 39 public FileName createName(final String path, FileType type) 40 { 41 return new WindowsFileName(getScheme(), getRootFile(), path, type); 42 } 43 44 47 protected void appendRootUri(final StringBuffer buffer) 48 { 49 buffer.append(getScheme()); 50 buffer.append("://"); 51 if (getRootFile() != null && !getRootFile().startsWith("/")) 52 { 53 buffer.append("/"); 55 } 56 buffer.append(getRootFile()); 57 } 58 } 59 | Popular Tags |