/** * Reads a single instance using the tokenizer and returns it. * * @param structure the dataset header information, will get updated in case * of string or relational attributes * @param flag if method should test for carriage return after each instance * @return null if end of file has been reached * @throws IOException if the information is not read successfully */ public Instance readInstance(Instances structure, boolean flag) throws IOException { return getInstance(structure, flag); }
/** * Reads a single instance using the tokenizer and returns it. * * @param structure the dataset header information, will get updated in case * of string or relational attributes * @param flag if method should test for carriage return after each instance * @return null if end of file has been reached * @throws IOException if the information is not read successfully */ public Instance readInstance(Instances structure, boolean flag) throws IOException { return getInstance(structure, flag); }