protected String extractFileContent ( final String filename ) throws IOException { final StringBuilder sb = new StringBuilder ( ) ; String temp = "" ; final BufferedReader bufferedReader = new BufferedReader ( new FileReader ( filename ) ) ; try { while ( temp != null ) { temp = bufferedReader . readLine ( ) ; if ( temp != null ) { sb . append ( temp ) ; } } return sb . toString ( ) ; } finally { bufferedReader . close ( ) ; } }
Reads the complete content of the javaxpath file .