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
Revision: 1.1
Committed: Sun Jan 14 21:22:34 2001 UTC (23 years, 4 months ago) by ajm
Branch: MAIN
Log Message:
initial checkin

File Contents

# User Rev Content
1 ajm 1.1 //---PACKAGE DECLARATION---
2    
3     //---IMPORTS---
4     import java.io.*;
5    
6     /**
7     * Reads in bound data and presents it as it comes
8     * in for anything that wants it.
9     *
10     * @author $Author: tdb1 $
11     * @version $Id: UDPReader.java,v 1.12 2001/01/12 00:45:25 tdb1 Exp $
12     */
13     public class DataReader extends Thread {
14    
15     //---FINAL ATTRIBUTES---
16    
17     /**
18     * The current CVS revision of this class
19     */
20     public final String REVISION = "$Revision: 1.12 $";
21    
22     //---STATIC METHODS---
23    
24     //---CONSTRUCTORS---
25    
26     public DataReader(BufferedReader inBound) {
27     _inBound = inBound;
28     }
29    
30     //---PUBLIC METHODS---
31    
32     public void run() {
33     boolean running = true;
34     while (running){
35     try {
36    
37     _xml = _inBound.readLine();
38     }
39     catch (IOException e) {
40     System.err.println("This DataReader thread has been shut down as an exception occured: "+e);
41     running = false;
42     return;
43     }
44     }
45     }
46    
47     //---PRIVATE METHODS---
48    
49     //---ACCESSOR/MUTATOR METHODS---
50    
51     public String getXML() {
52     return _xml;
53     }
54    
55     //---ATTRIBUTES---
56    
57     BufferedReader _inBound;
58     String _xml;
59    
60     //---STATIC ATTRIBUTES---
61    
62     }