question: protected boolean appendFoundJars ( Node container , Document factory , Vector v , String desc ) { if ( ( null == v ) || ( v . size ( ) < 1 ) ) return false ; boolean errors = false ; for ( int i = 0 ; i < v . size ( ) ; i ++ ) { Hashtable subhash = ( Hashtable ) v . elementAt ( i ) ; for ( Enumeration keys = subhash . keys ( ) ; keys . hasMoreElements ( ) ; ) { Object key = keys . nextElement ( ) ; try { String keyStr = ( String ) key ; if ( keyStr . startsWith ( ERROR ) ) { errors = true ; } Element node = factory . createElement ( "foundJar" ) ; node . setAttribute ( "name" , keyStr . substring ( 0 , keyStr . indexOf ( "-" ) ) ) ; node . setAttribute ( "desc" , keyStr . substring ( keyStr . indexOf ( "-" ) + 1 ) ) ; node . appendChild ( factory . createTextNode ( ( String ) subhash . get ( keyStr ) ) ) ; container . appendChild ( node ) ; } catch ( Exception e ) { errors = true ; Element node = factory . createElement ( "foundJar" ) ; node . appendChild ( factory . createTextNode ( ERROR + " Reading " + key + " threw: " + e . toString ( ) ) ) ; container . appendChild ( node ) ; } } } return errors ; }
target:  Print out report of .jars found in a classpath.  Takes the information encoded from a checkPathForJars()  call and dumps it out to our PrintWriter.