1 28 29 package com.caucho.vfs; 30 31 import java.util.Map ; 32 33 public class SpyScheme extends FilesystemPath { 34 public SpyScheme() 35 { 36 super(null, "/", "/"); 37 } 38 39 public Path fsWalk(String userPath, 40 Map <String ,Object > attributes, 41 String path) 42 { 43 if (path.startsWith("/file:")) 44 return new SpyPath(Vfs.lookup().lookup(path.substring(1))); 45 else 46 return new SpyPath(Vfs.lookup().lookup(path)); 47 } 48 49 public String getScheme() 50 { 51 return "spy"; 52 } 53 } 54 | Popular Tags |