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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filter/FilterThread.java (file contents):
Revision 1.17 by tdb, Thu Jan 18 23:16:21 2001 UTC vs.
Revision 1.18 by tdb, Sun Jan 28 05:25:43 2001 UTC

# Line 35 | Line 35 | public class FilterThread extends Thread{
35   //---CONSTRUCTORS---
36    
37      /**
38 <     * Class constructor.
38 >     * Constructs an instance of a FilterThread
39 >     *
40 >     * @param queue the Queue this filter is using
41 >     * @param parent a CORBA reference to our parent filter
42       */
43      public FilterThread(Queue queue, Filter parent){
44          _parent = parent;
# Line 46 | Line 49 | public class FilterThread extends Thread{
49   //---PUBLIC METHODS---
50  
51      /**
52 <     * Runs the thread
52 >     * Runs the thread, getting data from the Queue and
53 >     * sending it on to the parent filter.
54       */
55      public void run(){
56          // get a queue for ourselves
# Line 71 | Line 75 | public class FilterThread extends Thread{
75                  xml = xml.substring(0, xml.length());
76              }
77              
74            
78              // Bundle the XML all on one line (saves space and simplifies
79 <            // the protocol between clientinterface and client.
79 >            // the protocol between clientinterface and client).
80              StringTokenizer tokenizer = new StringTokenizer(new String(xml), "\n");
81              xml = "";
82              while (tokenizer.hasMoreTokens()) {
83                  xml += tokenizer.nextToken();
84              }
82            
85              
86              // Use XMLPacketMaker to make an XMLPacket object.
87              XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(xml);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines