commons-file/src/main/java/info/monitorenter/cpdetector/io/JarArchive.java
private String getSearchPath(ITreeNode node) {

        List l = new LinkedList();
        node.getUserObjectPathFromRoot(l);
        Iterator it = l.iterator();
        StringBuffer ret = new StringBuffer();
        int i = 0;
        String token;
        while (it.hasNext()) {
            // avoid the "root" token.
            token = it.next().toString();
            if (i != 0) {
                ret.append(token);
                if (it.hasNext()) {
                    ret.append('/');
                }
            }

            i++;
        }
        return ret.toString();
    }
private String getSearchPath(ITreeNode node) {

        List l = new LinkedList();
        node.getUserObjectPathFromRoot(l);
        Iterator it = l.iterator();
        StringBuffer ret = new StringBuffer();
        int i = 0;
        String token;
        while (it.hasNext()) {
            // avoid the "root" token.
            token = it.next().toString();
            if (i != 0) {
                ret.append(token);
                if (it.hasNext()) {
                    ret.append('/');
                }
            }

            i++;
        }
        return ret.toString();
    }
private String getSearchPath ( ITreeNode node ) { List l = new LinkedList ( ) ; node . getUserObjectPathFromRoot ( l ) ; Iterator it = l . iterator ( ) ; StringBuffer ret = new StringBuffer ( ) ; int i = 0 ; String token ; while ( it . hasNext ( ) ) { // avoid the "root" token. token = it . next ( ) . toString ( ) ; if ( i != 0 ) { ret . append ( token ) ; if ( it . hasNext ( ) ) { ret . append ( ' ' ) ; } } i ++ ; } return ret . toString ( ) ; }
Little helper that transforms (back) the nodes of the tree that was parsed from the entries during initialization
to canonical strings for entries.
Little helper that transforms ( back ) the nodes of the tree that was parsed from the entries during initialization to canonical strings for entries .