ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/conient/uk/org/iscream/cms/conient/DataReader.java
(Generate patch)

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/DataReader.java (file contents):
Revision 1.2 by ajm, Sun Jan 14 23:14:35 2001 UTC vs.
Revision 1.3 by ajm, Mon Jan 15 03:01:37 2001 UTC

# Line 31 | Line 31 | public class DataReader extends Thread {
31  
32      public void run() {
33          boolean running = true;
34 <        while (running){
35 <            try {
36 <                
34 >        try {
35 >            while (_inBound.ready()) {
36                  _xml = _inBound.readLine();
37                  synchronized (this) {
38                      notifyAll();
39                  }
40              }
41 <            catch (IOException e) {
41 >        } catch (IOException e) {
42                  System.err.println("This DataReader thread has been shut down as an exception occured: "+e);
43                  running = false;
44                  return;
46            }
45          }
46      }
47  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines