--- projects/cms/source/conient/uk/org/iscream/cms/conient/DataReader.java 2001/01/14 23:14:35 1.2 +++ projects/cms/source/conient/uk/org/iscream/cms/conient/DataReader.java 2001/01/15 03:01:37 1.3 @@ -8,7 +8,7 @@ import java.io.*; * in for anything that wants it. * * @author $Author: ajm $ - * @version $Id: DataReader.java,v 1.2 2001/01/14 23:14:35 ajm Exp $ + * @version $Id: DataReader.java,v 1.3 2001/01/15 03:01:37 ajm Exp $ */ public class DataReader extends Thread { @@ -17,7 +17,7 @@ public class DataReader extends Thread { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.2 $"; + public final String REVISION = "$Revision: 1.3 $"; //---STATIC METHODS--- @@ -31,19 +31,17 @@ public class DataReader extends Thread { public void run() { boolean running = true; - while (running){ - try { - + try { + while (_inBound.ready()) { _xml = _inBound.readLine(); synchronized (this) { notifyAll(); } } - catch (IOException e) { + } catch (IOException e) { System.err.println("This DataReader thread has been shut down as an exception occured: "+e); running = false; return; - } } }