ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/XMLReader/UDPReaderThread.java
(Generate patch)

Comparing experimental/server/XMLReader/UDPReaderThread.java (file contents):
Revision 1.3 by pjm2, Fri Nov 17 14:45:56 2000 UTC vs.
Revision 1.4 by pjm2, Fri Nov 17 14:49:13 2000 UTC

# Line 16 | Line 16 | public class UDPReaderThread extends Thread{
16      
17      public void run(){
18  
19 +        // Get a string without any null characters in it.
20          String xml = new String(rawPacket);
21          xml = xml.substring(0, xml.indexOf(0));
22  
23 <        System.out.println("UDPReaderThread - Received the following raw stuff: "+xml);
23 <
23 >        // USe my XMLPacketMaker to make an XMLPacket object.
24          XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(xml);
25          XMLPacket packet = xmlPacketMaker.createXMLPacket();
26  
# Line 31 | Line 31 | public class UDPReaderThread extends Thread{
31          System.out.println("UDPReaderThread - An XML Packet was read sucessfully: -");
32          packet.printAll();
33          // Now do something with this XMLPacket!!!
34 <        // ....
34 >        // .... but what? ;-)
35      }
36      
37      byte[] rawPacket;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines