axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding DeserializationContextImpl.java
Date Mon, 04 Nov 2002 16:19:59 GMT
gdaniels    2002/11/04 08:19:59

  Modified:    java/src/org/apache/axis/encoding
                        DeserializationContextImpl.java
  Log:
  Handle all events when recorder is null (needed for streaming).
  
  Revision  Changes    Path
  1.69      +14 -7     xml-axis/java/src/org/apache/axis/encoding/DeserializationContextImpl.java
  
  Index: DeserializationContextImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/DeserializationContextImpl.java,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- DeserializationContextImpl.java	30 Oct 2002 22:56:19 -0000	1.68
  +++ DeserializationContextImpl.java	4 Nov 2002 16:19:58 -0000	1.69
  @@ -1020,37 +1020,43 @@
                        java.lang.String systemId)
                 throws SAXException
       {
  -        recorder.startDTD(name, publicId, systemId);
  +        if (recorder != null)
  +            recorder.startDTD(name, publicId, systemId);
       }
       
       public void endDTD()
               throws SAXException
       {
  -        recorder.endDTD();
  +        if (recorder != null)
  +            recorder.endDTD();
       }
       
       public void startEntity(java.lang.String name)
                    throws SAXException
       {
  -        recorder.startEntity(name);
  +        if (recorder != null)
  +            recorder.startEntity(name);
       }
       
       public void endEntity(java.lang.String name)
                  throws SAXException
       {
  -        recorder.endEntity(name);
  +        if (recorder != null)
  +            recorder.endEntity(name);
       }
       
       public void startCDATA()
                   throws SAXException
       {
  -        recorder.startCDATA();
  +        if (recorder != null)
  +            recorder.startCDATA();
       }
       
       public void endCDATA()
                 throws SAXException
       {
  -        recorder.endCDATA();
  +        if (recorder != null)
  +            recorder.endCDATA();
       }
       
       public void comment(char[] ch,
  @@ -1058,7 +1064,8 @@
                       int length)
                throws SAXException
       {
  -        recorder.comment(ch, start, length);
  +        if (recorder != null)
  +            recorder.comment(ch, start, length);
       }
   
       public InputSource resolveEntity(String publicId, String systemId) 
  
  
  

Mime
View raw message