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

Comparing experimental/server/XMLReader/XMLPacketMaker.java (file contents):
Revision 1.12 by pjm2, Fri Nov 17 12:44:47 2000 UTC vs.
Revision 1.14 by pjm2, Fri Nov 17 14:49:13 2000 UTC

# Line 32 | Line 32 | public class XMLPacketMaker extends HandlerBase {
32          try {
33  
34              // Parse the input
35 +            InputSource inputSource = new InputSource(new StringReader(xml));
36              SAXParser saxParser = factory.newSAXParser();
37 <            saxParser.parse(xml, new XMLPacketParser(packet));
37 >            saxParser.parse(inputSource, new XMLPacketParser(packet));
38  
39          }
40 <        catch (IOException e){
40 <            System.out.println("IOException: "+e);
41 <        }
42 <        catch (Throwable t) {
40 >        catch (Exception e) {
41              System.out.println("XMLPacketMaker - I just received an XML packet that did not contain valid XML.");
42 <            //System.out.println(e);
45 <            t.printStackTrace();
42 >            //t.printStackTrace();
43              return null;
44          }
45          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines