Logo Search packages:      
Sourcecode: libloader version File versions  Download package

static List org::jfree::resourceloader::loader::LoaderUtils::parseName ( final String  name,
final boolean  skipLast 
) [inline, static, private]

Parses the given name and returns the name elements as List of Strings.

name the name, that should be parsed.
the parsed name.

Definition at line 144 of file LoaderUtils.java.

Referenced by mergePaths().

    final ArrayList list = new ArrayList();
    final StringTokenizer strTok = new StringTokenizer(name, "/");
    while (strTok.hasMoreElements())
      final String s = (String) strTok.nextElement();
      if (s.length() != 0)
    if (skipLast && list.isEmpty() == false)
      list.remove(list.size() - 1);
    return list;

Generated by  Doxygen 1.6.0   Back to index