--- projects/cms/source/server/uk/org/iscream/cms/server/filter/FilterThread.java 2001/01/18 23:16:21 1.17 +++ projects/cms/source/server/uk/org/iscream/cms/server/filter/FilterThread.java 2001/01/28 05:25:43 1.18 @@ -19,7 +19,7 @@ import uk.ac.ukc.iscream.util.*; * waiting to be contacted. * * @author $Author: tdb $ - * @version $Id: FilterThread.java,v 1.17 2001/01/18 23:16:21 tdb Exp $ + * @version $Id: FilterThread.java,v 1.18 2001/01/28 05:25:43 tdb Exp $ */ public class FilterThread extends Thread{ @@ -28,14 +28,17 @@ public class FilterThread extends Thread{ /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.17 $"; + public final String REVISION = "$Revision: 1.18 $"; //---STATIC METHODS--- //---CONSTRUCTORS--- /** - * Class constructor. + * Constructs an instance of a FilterThread + * + * @param queue the Queue this filter is using + * @param parent a CORBA reference to our parent filter */ public FilterThread(Queue queue, Filter parent){ _parent = parent; @@ -46,7 +49,8 @@ public class FilterThread extends Thread{ //---PUBLIC METHODS--- /** - * Runs the thread + * Runs the thread, getting data from the Queue and + * sending it on to the parent filter. */ public void run(){ // get a queue for ourselves @@ -71,15 +75,13 @@ public class FilterThread extends Thread{ xml = xml.substring(0, xml.length()); } - // Bundle the XML all on one line (saves space and simplifies - // the protocol between clientinterface and client. + // the protocol between clientinterface and client). StringTokenizer tokenizer = new StringTokenizer(new String(xml), "\n"); xml = ""; while (tokenizer.hasMoreTokens()) { xml += tokenizer.nextToken(); } - // Use XMLPacketMaker to make an XMLPacket object. XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(xml);