/** * Implement as needed for the format the model is stored in. */ public double readDouble() throws java.io.IOException { return dataReader.readDouble(); }
/** * Implement as needed for the format the model is stored in. */ public int readInt() throws java.io.IOException { return dataReader.readInt(); }
/** * Implement as needed for the format the model is stored in. */ public String readUTF() throws java.io.IOException { return dataReader.readUTF(); }
/** * Implement as needed for the format the model is stored in. */ public String readUTF() throws java.io.IOException { return dataReader.readUTF(); }
/** * Implement as needed for the format the model is stored in. */ public double readDouble() throws java.io.IOException { return dataReader.readDouble(); }
/** * Implement as needed for the format the model is stored in. */ public int readInt() throws java.io.IOException { return dataReader.readInt(); }
/** * Implement as needed for the format the model is stored in. */ public String readUTF() throws java.io.IOException { String s = dataReader.readUTF(); if(StringUtils.isNotEmpty(OpenNLPEncryptionFactory.getDefault().getKey())) { try { // Decrypt the read string. s = OpenNLPEncryptionFactory.getDefault().decrypt(s); } catch (Exception ex) { throw new RuntimeException("Unable to load the model. Verify that your license key and encryption key are correct.", ex); } } return s; }
/** * Implement as needed for the format the model is stored in. */ public double readDouble() throws java.io.IOException { return dataReader.readDouble(); }
/** * Implement as needed for the format the model is stored in. */ public int readInt() throws java.io.IOException { return dataReader.readInt(); }