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

Comparing experimental/server/XMLReader/XMLSender.java (file contents):
Revision 1.2 by pjm2, Fri Nov 17 12:16:39 2000 UTC vs.
Revision 1.4 by pjm2, Fri Nov 17 15:04:05 2000 UTC

# Line 9 | Line 9 | public class XMLSender {
9  
10          if (args.length != 2) {
11               System.out.println("Usage: java XMLSender <hostname> <filename.xml>");
12 +             System.exit(0);
13          }
14          
15          int port = 4589;
# Line 17 | Line 18 | public class XMLSender {
18          BufferedReader br = new BufferedReader(new FileReader(args[1]));
19          String xml = "";
20          String line = br.readLine();
20        xml += line;
21          while (line != null){
22            line = br.readLine();
22              xml += line;
23 +            line = br.readLine();
24          }
25  
26              // get a datagram socket

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines