You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@apache.org on 2001/03/16 03:23:03 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/validation/validators XMLDTDValidator.java XMLSchemaValidator.java

lehors      01/03/15 18:23:02

  Modified:    java/src/org/apache/xerces/impl/validation/validators Tag:
                        xerces_j_2 XMLDTDValidator.java
                        XMLSchemaValidator.java
  Log:
  fixed startDocument to match the new interface
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.6   +13 -4     xml-xerces/java/src/org/apache/xerces/impl/validation/validators/Attic/XMLDTDValidator.java
  
  Index: XMLDTDValidator.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/validation/validators/Attic/XMLDTDValidator.java,v
  retrieving revision 1.1.2.5
  retrieving revision 1.1.2.6
  diff -u -r1.1.2.5 -r1.1.2.6
  --- XMLDTDValidator.java	2001/01/30 07:07:01	1.1.2.5
  +++ XMLDTDValidator.java	2001/03/16 02:22:58	1.1.2.6
  @@ -87,7 +87,7 @@
   /**
    * @author Eric Ye, IBM
    *
  - * @version $Id: XMLDTDValidator.java,v 1.1.2.5 2001/01/30 07:07:01 andyc Exp $
  + * @version $Id: XMLDTDValidator.java,v 1.1.2.6 2001/03/16 02:22:58 lehors Exp $
    */
   public class XMLDTDValidator
       extends XMLValidator {
  @@ -174,17 +174,26 @@
       /**
        * The start of the document.
        *
  +     * @param systemId The system identifier of the entity if the entity
  +     *                 is external, null otherwise.
  +     * @param encoding The auto-detected IANA encoding name of the entity
  +     *                 stream. This value will be null in those situations
  +     *                 where the entity encoding is not auto-detected (e.g.
  +     *                 internal entities or a document entity that is
  +     *                 parsed from a java.io.Reader).
  +     *
        * @throws SAXException Thrown by handler to signal an error.
        */
  -    public void startDocument() throws SAXException {
  +    public void startDocument(String systemId, String encoding)
  +        throws SAXException {
   
           // call handlers
           if (fDocumentHandler != null) {
  -            fDocumentHandler.startDocument();
  +            fDocumentHandler.startDocument(systemId, encoding);
           }
   
       
  -    } // startDocument()
  +    } // startDocument(String,String)
   
       /**
        * Notifies of the presence of an XMLDecl line in the document. If
  
  
  
  1.1.2.2   +14 -5     xml-xerces/java/src/org/apache/xerces/impl/validation/validators/Attic/XMLSchemaValidator.java
  
  Index: XMLSchemaValidator.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/validation/validators/Attic/XMLSchemaValidator.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- XMLSchemaValidator.java	2000/10/16 23:04:12	1.1.2.1
  +++ XMLSchemaValidator.java	2001/03/16 02:22:59	1.1.2.2
  @@ -82,7 +82,7 @@
   /**
    * @author Eric Ye, IBM
    *
  - * @version $Id: XMLSchemaValidator.java,v 1.1.2.1 2000/10/16 23:04:12 ericye Exp $
  + * @version $Id: XMLSchemaValidator.java,v 1.1.2.2 2001/03/16 02:22:59 lehors Exp $
    */
   public class XMLSchemaValidator
       extends XMLValidator {
  @@ -107,16 +107,25 @@
       /**
        * The start of the document.
        *
  +     * @param systemId The system identifier of the entity if the entity
  +     *                 is external, null otherwise.
  +     * @param encoding The auto-detected IANA encoding name of the entity
  +     *                 stream. This value will be null in those situations
  +     *                 where the entity encoding is not auto-detected (e.g.
  +     *                 internal entities or a document entity that is
  +     *                 parsed from a java.io.Reader).
  +     *     
        * @throws SAXException Thrown by handler to signal an error.
        */
  -    public void startDocument() throws SAXException {
  +    public void startDocument(String systemId, String encoding) 
  +        throws SAXException {
   
           // call handlers
           if (fDocumentHandler != null) {
  -            fDocumentHandler.startDocument();
  +            fDocumentHandler.startDocument(systemId, encoding);
           }
  -    
  -    } // startDocument()
  +
  +    } // startDocument(String,String)
   
       /**
        * Notifies of the presence of an XMLDecl line in the document. If
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org