private static String readResourceLine ( DocPath docPath , BufferedReader in ) throws ResourceIOException { try { return in . readLine ( ) ; } catch ( IOException e ) { throw new ResourceIOException ( docPath , e ) ; } }
Reads a line of characters from an input stream opened from a given resource . If an IOException occurs it is wrapped in a ResourceIOException .