Code example for IOError

0
     */ 
    public Iterator<Document> read(File file) {
        try { 
            return read(new FileReader(file));
        } catch (FileNotFoundException fnfe) {
            throw new IOError(fnfe);
        } 
    } 
 
    public class SemEvalHandler extends DefaultHandler {
 
        /** 
         * The list of processed contexts. 
         */ 
        List<Document> contexts;
 
        /** 
         * A boolean marker signifying that the parser is in the context tag. 
         */ 
        private boolean inContext;