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.15 by tdb, Fri Jan 12 00:45:25 2001 UTC vs.
Revision 1.16 by pjm2, Mon Jan 15 10:09:49 2001 UTC

# Line 50 | Line 50 | public class FilterThread extends Thread{
50      public void run(){
51          // get a queue for ourselves
52          int n = _queue.getQueue();
53 <        // keep this out here, saves recreating the object
53 >        // keep these out here, saves recreating the object
54          String xml = null;
55          while(true) {
56              // get a String of xml
# Line 69 | Line 69 | public class FilterThread extends Thread{
69              else {
70                  xml = xml.substring(0, xml.length());
71              }
72 +            
73 +            
74 +            // Bundle the XML all on one line (saves space and simplifies
75 +            // the protocol between clientinterface and client.
76 +            StringTokenizer tokenizer = new StringTokenizer(new String(xml), "\n");
77 +            xml = "";
78 +            while (tokenizer.hasMoreTokens()) {
79 +                xml += tokenizer.nextToken();
80 +            }
81 +            
82              
83              // Use XMLPacketMaker to make an XMLPacket object.
84              XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(xml);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines