private boolean parseOne(ClassLoader classLoader, String resName) throws IOException {
        InputStream is = classLoader.getResourceAsStream(resName);
        if (is == null)     return false;

        BufferedReader in = new BufferedReader(new InputStreamReader(is,UTF8));
        String line;
        while((line=in.readLine())!=null) {
            Matcher m = INCLUDE.matcher(line);
            if(m.lookingAt())
                required.add(m.group(1));
        }
        in.close();
        return true;
    }
private boolean parseOne ( ClassLoader classLoader , String resName ) throws IOException { InputStream is = classLoader . getResourceAsStream ( resName ) ; if ( is == null ) return false ; BufferedReader in = new BufferedReader ( new InputStreamReader ( is , UTF8 ) ) ; String line ; while ( ( line = in . readLine ( ) ) != null ) { Matcher m = INCLUDE . matcher ( line ) ; if ( m . lookingAt ( ) ) required . add ( m . group ( 1 ) ) ; } in . close ( ) ; return true ; }
Parses CSS or JavaScript files and extract dependencies.