1 16 package org.apache.commons.vfs.provider; 17 18 import org.apache.commons.vfs.FileName; 19 import org.apache.commons.vfs.FileType; 20 21 26 public class LayeredFileName extends AbstractFileName 27 { 28 private final FileName outerUri; 29 30 public LayeredFileName(final String scheme, 31 final FileName outerUri, 32 final String path, 33 final FileType type) 34 { 35 super(scheme, path, type); 36 this.outerUri = outerUri; 37 } 38 39 42 public FileName getOuterName() 43 { 44 return outerUri; 45 } 46 47 public FileName createName(String path, FileType type) 48 { 49 return new LayeredFileName(getScheme(), getOuterName(), path, type); 50 } 51 52 protected void appendRootUri(StringBuffer buffer) 53 { 54 buffer.append(getScheme()); 55 buffer.append(":"); 56 buffer.append(getOuterName().getURI()); 57 buffer.append("!"); 58 } 59 } 60 | Popular Tags |