question: private static int readPid ( final File pidFile ) throws IOException { BufferedReader fileReader = null ; String pidValue = null ; try { fileReader = new BufferedReader ( new FileReader ( pidFile ) ) ; pidValue = fileReader . readLine ( ) ; final int pid = Integer . parseInt ( pidValue ) ; if ( pid < 1 ) { throw new IllegalArgumentException ( "Invalid pid '" + pid + "' found in " + pidFile ) ; } return pid ; } catch ( NumberFormatException e ) { throw new IllegalArgumentException ( "Invalid pid '" + pidValue + "' found in " + pidFile ) ; } finally { IOUtils . close ( fileReader ) ; } }
target:  Reads in the pid from the specified file.