Java 8 DTDHandler - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 DTDHandler class.

This code example shows how to use the following methods: unparsedEntityDecl
    public void unparsedEntityDecl (String name, String publicId,
    String systemId, String notationName)
    throws SAXException 
    { 
        if (dtdHandler != null) {
            dtdHandler.unparsedEntityDecl(name, publicId, systemId,
            notationName);
        } 
    } 
     
     
     
    //////////////////////////////////////////////////////////////////// 
    // Implementation of org.xml.sax.ContentHandler. 
    //////////////////////////////////////////////////////////////////// 
     
     
    /** 
     * Assigns the document locator. 
     * 
Full Snippet Info
2
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: notationDecl
     */ 
    public void notationDecl (String name, String publicId, String systemId)
    throws SAXException 
    { 
        if (dtdHandler != null) {
            dtdHandler.notationDecl(name, publicId, systemId);
        } 
    } 
     
     
    /** 
     * Add unparsed entity declaration. 
     * 
     * @param name The entity name. 
     * @param publicId The entity's public identifier, or null. 
     * @param systemId The entity's system identifier, or null. 
     * @param notationName The name of the associated notation. 
     * @exception org.xml.sax.SAXException The client may throw 
     *            an exception during processing. 
     * @see org.xml.sax.DTDHandler#unparsedEntityDecl 
Full Snippet Info
2
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: notationDecl
    } 
 
    /*package*/ void notationDecl(String name, String publicId, String systemId) throws SAXException {
        DTDHandler dtdHandler = xmlReader.dtdHandler;
        if (dtdHandler != null) {
            dtdHandler.notationDecl(name, publicId, systemId);
        } 
    } 
 
    /*package*/ void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException {
        DTDHandler dtdHandler = xmlReader.dtdHandler;
        if (dtdHandler != null) {
            dtdHandler.unparsedEntityDecl(name, publicId, systemId, notationName);
        } 
    } 
 
    /** 
     * Handles an external entity. 
     * 
     * @param context to be passed back to Expat when we parse the entity 
Full Snippet Info
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: unparsedEntityDecl
          String name, String publicId, String systemId, String notationName)
            throws SAXException 
  { 
 
    if (null != m_resultDTDHandler)
      m_resultDTDHandler.unparsedEntityDecl(name, publicId, systemId,
                                            notationName);
  } 
 
  //////////////////////////////////////////////////////////////////// 
  // Default implementation of ContentHandler interface. 
  //////////////////////////////////////////////////////////////////// 
 
  /** 
   * Receive a Locator object for document events. 
   * 
   * <p>By default, do nothing.  Application writers may override this 
   * method in a subclass if they wish to store the locator for use 
   * with other document events.</p> 
   * 
Full Snippet Info
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: notationDecl
     */ 
    public void notationDecl(String name, String publicId, String systemId) 
	throws SAXException 
    { 
        if (_dtdHandler != null) {
	    _dtdHandler.notationDecl(name, publicId, systemId);
        } 
    } 
 
    /** 
     * Implements org.xml.sax.ext.DeclHandler.attributeDecl() 
     */ 
    public void attributeDecl(String eName, String aName, String type, 
	String valueDefault, String value) throws SAXException 
    { 
        if (_declHandler != null) {
	    _declHandler.attributeDecl(eName, aName, type, valueDefault, value);
        } 
    } 
 
Full Snippet Info
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: notationDecl
DTDHandler	l1 = first.getDTDHandler ();
	DTDHandler	l2 = rest.getDTDHandler ();
 
	l1.notationDecl (name, publicId, systemId);
	l2.notationDecl (name, publicId, systemId);
    } 
 
    public void unparsedEntityDecl (String name,
	    String publicId, String systemId,
	    String notationName
    ) throws SAXException 
    { 
	DTDHandler	l1 = first.getDTDHandler ();
	DTDHandler	l2 = rest.getDTDHandler ();
 
	l1.unparsedEntityDecl (name, publicId, systemId, notationName);
	l2.unparsedEntityDecl (name, publicId, systemId, notationName);
    } 
 
Full Snippet Info
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: unparsedEntityDecl
          String name, String publicId, String systemId, String notationName)
            throws SAXException 
  { 
 
    if (null != m_resultDTDHandler)
      m_resultDTDHandler.unparsedEntityDecl(name, publicId, systemId,
                                            notationName);
  } 
 
  //////////////////////////////////////////////////////////////////// 
  // Default implementation of ContentHandler interface. 
  //////////////////////////////////////////////////////////////////// 
 
  /** 
   * Receive a Locator object for document events. 
   * 
   * <p>By default, do nothing.  Application writers may override this 
   * method in a subclass if they wish to store the locator for use 
   * with other document events.</p> 
   * 
Full Snippet Info
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: unparsedEntityDecl
            throws SAXException 
  { 
 
    if (m_dtdHandler != null)
    { 
      m_dtdHandler.unparsedEntityDecl(name, publicId, systemId, notationName);
    } 
  } 
 
  //////////////////////////////////////////////////////////////////// 
  // Implementation of org.xml.sax.ContentHandler. 
  //////////////////////////////////////////////////////////////////// 
 
  /** 
   * Filter a new document locator event. 
   * 
   * @param locator The document locator. 
   * @see org.xml.sax.ContentHandler#setDocumentLocator 
   */ 
  public void setDocumentLocator(Locator locator)
Full Snippet Info
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: notationDecl
     */ 
    public void notationDecl(String name, String publicId, String systemId) 
	throws SAXException 
    { 
        if (_dtdHandler != null) {
	    _dtdHandler.notationDecl(name, publicId, systemId);
        } 
    } 
 
    /** 
     * Implements org.xml.sax.ext.DeclHandler.attributeDecl() 
     */ 
    public void attributeDecl(String eName, String aName, String type, 
	String valueDefault, String value) throws SAXException 
    { 
        if (_declHandler != null) {
	    _declHandler.attributeDecl(eName, aName, type, valueDefault, value);
        } 
    } 
 
Full Snippet Info
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: notationDecl
  // DTDHandler support. 
   
  public void notationDecl(String a, String b, String c) throws SAXException
  { 
  	if(null!=clientDTDHandler)
	  	clientDTDHandler.notationDecl(a,b,c);
  } 
  public void unparsedEntityDecl(String a, String b, String c, String d)  throws SAXException
  { 
  	if(null!=clientDTDHandler)
	  	clientDTDHandler.unparsedEntityDecl(a,b,c,d);
  } 
   
  // 
  // ErrorHandler support. 
  // 
  // PROBLEM: Xerces is apparently _not_ calling the ErrorHandler for 
  // exceptions thrown by the ContentHandler, which prevents us from 
  // handling this properly when running in filtering mode with Xerces 
  // as our event source.  It's unclear whether this is a Xerces bug 
Full Snippet Info
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Java 8 DTDHandler Methods: