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.7 by ajm, Wed Jan 24 03:09:45 2001 UTC vs.
Revision 1.11 by ajm, Thu Mar 15 01:05:46 2001 UTC

# Line 1 | Line 1
1   //---PACKAGE DECLARATION---
2 < package uk.ac.ukc.iscream.conient;
2 > package uk.org.iscream.conient;
3  
4   //---IMPORTS---
5   import java.io.*;
6 < import uk.ac.ukc.iscream.util.*;
6 > import uk.org.iscream.util.*;
7  
8   /**
9   * The class reads in data from a BufferedReader,
# Line 55 | Line 55 | public class DataReader extends Thread {
55              // continue until we are told to stop
56              while (_running) {
57                  line = _inBound.readLine();
58 +                if (line == null) {
59 +                    throw new IOException("unexpected loss of connection to server");
60 +                }
61                  _dataQueue.add(line);
62              }
63          
# Line 62 | Line 65 | public class DataReader extends Thread {
65              _inBound.close();
66          
67          } catch (IOException e) {
68 <            SwingClient.addMessage("Data Channel Shutdown: reason - "+e);
68 >            Conient.addMessage("WARNING{data reader}: inbound data stopped - "+e);
69              _running = false;
70          }
71      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines