LexicalHandler comment - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for LexicalHandler comment method.

This code example shows how to use the following methods:comment
    } 
 
    /** {@inheritDoc} */ 
    public void comment(char[] ch, int start, int length) throws SAXException {
        if (lexicalHandler != null) {
            lexicalHandler.comment(ch, start, length);
        } 
    } 
 
    // ==== ErrorHandler 
 
    /** {@inheritDoc} */ 
    public void warning(SAXParseException exception) throws SAXException {
        if (errorHandler != null) {
            errorHandler.warning(exception);
        } 
    } 
 
    /** {@inheritDoc} */ 
    public void error(SAXParseException exception) throws SAXException {
3
CodeRank
This code example shows how to use the following methods:comment
      System.out.println("TransformerHandlerImpl#comment: " + start + ", "
                         + length);
 
    if (null != m_lexicalHandler)
    { 
      m_lexicalHandler.comment(ch, start, length);
    } 
  } 
 
  //////////////////////////////////////////////////////////////////// 
  // Implementation of org.xml.sax.ext.DeclHandler. 
  //////////////////////////////////////////////////////////////////// 
 
  /** 
   * Report an element type declaration. 
   * 
   * <p>The content model will consist of the string "EMPTY", the 
   * string "ANY", or a parenthesised group, optionally followed 
   * by an occurrence indicator.  The model will be normalized so 
   * that all whitespace is removed,and will include the enclosing 
3
CodeRank
This code example shows how to use the following methods:comment
    } 
 
    @Override 
    public void comment(char[] ch, int start, int length) throws SAXException {
        if (nextLexicalHandler != null)
            nextLexicalHandler.comment(ch, start, length);
    } 
     
    public void warning(SAXParseException exception) throws SAXException {
        if (nextErrorHandler != null)
            nextErrorHandler.warning(exception);
    } 
 
    public void error(SAXParseException exception) throws SAXException {
        if (nextErrorHandler != null)
            nextErrorHandler.error(exception);
    } 
     
    public void fatalError(SAXParseException exception) throws SAXException {
        if (nextErrorHandler != null)
4
CodeRank
This code example shows how to use the following methods:comment
            this.lexicalHandler = lexicalHandler;
        } 
 
        public void comment(char[] ch, int start, int length) throws SAXException {
            if(null != lexicalHandler) {
                lexicalHandler.comment(ch, start, length);
            } 
        } 
 
        public void endCDATA() throws SAXException {
            if(null  != lexicalHandler) {
                lexicalHandler.endCDATA();
            } 
        } 
 
        public void endDTD() throws SAXException {
            if(null != lexicalHandler) {
                lexicalHandler.endDTD();
            } 
        } 
3
CodeRank
This code example shows how to use the following methods:comment
	/* (non-Javadoc) 
	 * @see org.exist.util.serializer.Receiver#comment(char[], int, int) 
	 */ 
	public void comment(char[] ch, int start, int length) throws SAXException {
		if(lexicalHandler != null)
			{lexicalHandler.comment(ch, start, length);}
	} 
 
	/* (non-Javadoc) 
	 * @see org.exist.util.serializer.Receiver#processingInstruction(java.lang.String, java.lang.String) 
	 */ 
	public void processingInstruction(String target, String data)
			throws SAXException {
		contentHandler.processingInstruction(target, data);
	} 
 
    /* (non-Javadoc) 
     * @see org.exist.util.serializer.Receiver#cdataSection(char[], int, int) 
     */ 
    public void cdataSection(char[] ch, int start, int len) throws SAXException {
4
CodeRank
This code example shows how to use the following methods:comment
     */ 
    public void comment(char[] ch, int start, int length) 
	throws SAXException 
    {  
	if (_lexHandler != null) {
	    _lexHandler.comment(ch, start, length);
	} 
    } 
 
    /** 
     * Implements org.xml.sax.ContentHandler.ignorableWhitespace() 
     * Receive notification of ignorable whitespace in element 
     * content. Similar to characters(char[], int, int). 
     */ 
    public void ignorableWhitespace(char[] ch, int start, int length)
	throws SAXException_handler.ignorableWhitespace(ch, start, length);
    } 
 
4
CodeRank
This code example shows how to use the following methods:comment
     * @see org.xml.sax.ext.LexicalHandler#comment(char[], int, int) 
     */ 
    void comment(char[] ch, int start, int length, Locator locator)
            throws SAXException {
        this.locatorDelegate = locator;
        lexicalHandler.comment(ch, start, length);
    } 
 
    /** 
     * @see org.xml.sax.ext.LexicalHandler#endCDATA() 
     */ 
    void endCDATA(Locator locator) throws SAXException {
        this.locatorDelegate = locator;
        lexicalHandler.endCDATA();
    } 
 
    /** 
     * @see org.xml.sax.ext.LexicalHandler#endDTD() 
     */ 
    void endDTD(Locator locator) throws SAXException {
4
CodeRank
This code example shows how to use the following methods:comment
     * @param length The number of characters to use from the array. 
     * @exception SAXException The application may raise an exception. 
     */ 
    public void comment(char ch[], int start, int length) throws SAXException {
        if (lexicalHandler != null) {
            lexicalHandler.comment(ch, start, length);
        } 
    } 
     
    /** Pass data through the pipline. 
      * By default, this call is ignored. 
      * Subclasses are invited to use this as a way for children tags to 
      * pass data to their parent. 
      *  
      * @param object the data to pass 
      * @exception SAXException The application may raise an exception. 
      */ 
    public void objectData(Object object) throws SAXException {
        if(contentHandler instanceof XMLOutput)
            ((XMLOutput) contentHandler).objectData(object);
3
CodeRank
This code example shows how to use the following methods:comment
     * @see org.xml.sax.ext.LexicalHandler#comment 
     */ 
    public void comment(char[] ch, int start, int length)
    throws SAXException { 
        if (lexicalHandler != null) {
            lexicalHandler.comment(ch, start, length);
        } 
    } 
 
 
 
    //////////////////////////////////////////////////////////////////// 
    // Internal methods. 
    //////////////////////////////////////////////////////////////////// 
 
 
    /** 
     * Installs lexical handler before a parse. 
     * 
     * <p>Before every parse, check whether the parent is 
3
CodeRank
This code example shows how to use the following methods:comment
     */ 
    public void comment(char ch[], int start, int length) throws SAXException
    { 
      flushStartDoc(); 
      if (null != m_resultLexicalHandler)
        m_resultLexicalHandler.comment(ch, start, length);
    } 
 
    // Implement DeclHandler 
 
    /** 
       * Report an element type declaration. 
       * 
       * <p>The content model will consist of the string "EMPTY", the 
       * string "ANY", or a parenthesised group, optionally followed 
       * by an occurrence indicator.  The model will be normalized so 
       * that all whitespace is removed,and will include the enclosing 
       * parentheses.</p> 
       * 
       * @param name The element type name. 
4
CodeRank
comment Method Overview
Report an XML comment anywhere in the document.
See Code Examples for other Java 8 LexicalHandler Methods: