01: package prefuse.data.io;
02:
03: import prefuse.data.parser.DataParseException;
04:
05: /**
06: * Callback interface used by AbstractTextTableReader instances to be
07: * used when a table value is encountered in parsing.
08: *
09: * @author <a href="http://jheer.org">jeffrey heer</a>
10: */
11: public interface TableReadListener {
12:
13: /**
14: * Notification that a text string representing a table value has
15: * been read. It is the job of this callback to then appropriately
16: * take action, such as parse and store the value.
17: * @param line the line of the file at which the value was encountered
18: * @param col the table column index at which the value was encountered
19: * @param value the text string representing the data value
20: * @throws DataParseException if an error occurs while parsing the data
21: */
22: public void readValue(int line, int col, String value)
23: throws DataParseException;
24:
25: } // end of interface TableReadListener
|