package edu.stanford.nlp.trees;
import java.io.IOException;
/**
* A <code>TreeReader</code> adds functionality to another <code>Reader</code>
* by reading in Trees, or some descendant class.
*
* @author Christopher Manning
* @author Roger Levy (mod. 2003/01)
* @version 2003/01
*/
public interface TreeReader {
/**
* Reads a single tree.
*
* @return A single tree, or <code>null</code> at end of file.
*/
public Tree readTree() throws IOException;
/**
* Close the Reader behind this <code>TreeReader</code>.
*/
public void close() throws IOException;
}