/** * This method loads the contents of an XMI or XCAS file into the given CAS. The file type is * detected by the extension. * * @param aJCas * the target JCas * @param aFile * the file to read from * @throws IOException * if there is a problem reading the file * @deprecated Use {@link CasIOUtils#load(java.net.URL, CAS)} instead. */ @Deprecated public static void readJCas(JCas aJCas, File aFile) throws IOException { CasIOUtil.readCas(aJCas.getCas(), aFile); }