1   /*
2    *  Copyright (c) 1998-2001, The University of Sheffield.
3    *
4    *  This file is part of GATE (see http://gate.ac.uk/), and is free
5    *  software, licenced under the GNU Library General Public License,
6    *  Version 2, June 1991 (in the distribution as file licence.html,
7    *  and also available at http://gate.ac.uk/gate/licence.html).
8    *
9    *  Valentin Tablan 28 May 2002
10   *
11   *  $Id: DataListener.java,v 1.1 2002/06/27 17:12:32 valyt Exp $
12   */
13  
14  package gate.ml;
15  
16  public interface DataListener extends java.util.EventListener{
17  
18    /**
19     * Called by the data collectore when new data becomes available.
20     * @param offset the new offset reached in the document
21     */
22    public void dataAdvance(Long offset);
23  
24    /**
25     * Sets the data collector this data listener lives into.
26     * @param collector
27     */
28    public void setDataCollector(DataCollector collector);
29  }