public FileObject findResource(String name) { if (name.length() == 0) { return getAbstractRoot(); } /**Next piece of code is preformance enhancement; lastEnum = last value cache; PathElements is StringTokenizer wrapper that caches individual elements*/ PathElements local = lastEnum; if ((local == null) || !local.getOriginalName().equals(name)) { local = new PathElements(name); lastEnum = local; } return getAbstractRoot().find(local.getEnumeration()); }
public FileObject findResource (String name) { if (name.length () == 0) { return getAbstractRoot (); } /**Next piece of code is preformance enhancement; lastEnum = last value cache; PathElements is StringTokenizer wrapper that caches individual elements*/ PathElements local = lastEnum; if (local == null || !local.getOriginalName().equals(name)) { local = new PathElements (name); lastEnum = local; } return getAbstractRoot ().find (local.getEnumeration()); }
public FileObject findResource (String name) { if (name.length () == 0) { return getAbstractRoot (); } /**Next piece of code is preformance enhancement; lastEnum = last value cache; PathElements is StringTokenizer wrapper that caches individual elements*/ PathElements local = lastEnum; if (local == null || !local.getOriginalName().equals(name)) { local = new PathElements (name); lastEnum = local; } return getAbstractRoot ().find (local.getEnumeration()); }