Java 8 LexicalHandler - 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 LexicalHandler class.

This code example shows how to use the following methods: endCDATA, startCDATA
			lh = (pHandler instanceof LexicalHandler) ? (LexicalHandler) pHandler : null;
		} else { 
			lh = null;
		} 
		if (lh != null) {
			lh.startCDATA();
		} 
		pHandler.characters(pValue.toCharArray(), 0, pValue.length());
		if (lh != null) {
			lh.endCDATA();
		} 
	} 
 
	/** Converts the given node <code>pNode</code> into a 
	 * stream of SAX events, which are fired into the 
	 * content handler <code>pHandler</code>. 
	 * @param pNode The node being serialized. 
	 * @param pHandler The target handler. 
	 * @throws SAXException The target handler reported an error. 
	 */ 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: endDTD, startDTD
     * @see nu.validator.htmlparser.impl.TreeBuilder#appendDoctypeToDocument(java.lang.String, java.lang.String, java.lang.String) 
     */ 
    @Override 
    protected void appendDoctypeToDocument(String name, String publicIdentifier, String systemIdentifier) throws SAXException {
        if (lexicalHandler != null) {
            lexicalHandler.startDTD(name, publicIdentifier, systemIdentifier);
            lexicalHandler.endDTD();
        } 
    } 
 
    /** 
     * @see nu.validator.htmlparser.impl.TreeBuilder#elementPopped(String, java.lang.String, java.lang.Object) 
     */ 
    @Override 
    protected void elementPopped(String ns, String name, Attributes node) throws SAXException {
        contentHandler.endElement(ns, name, name);
    } 
 
    /** 
     * @see nu.validator.htmlparser.impl.TreeBuilder#elementPushed(String, java.lang.String, java.lang.Object) 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: startCDATA
            lexicalHandler.endEntity(name);
    } 
 
    public void startCDATA() throws SAXException {
        if (lexicalHandler != null)
            lexicalHandler.startCDATA();
    } 
 
    public void endCDATA() throws SAXException {
        if (lexicalHandler != null)
            lexicalHandler.endCDATA();
    } 
 
    public void comment(char[] ch, int start, int length) throws SAXException {
        if (lexicalHandler != null)
            lexicalHandler.comment(ch, start, length);
    } 
 
    public boolean endDocumentCalled() { 
        return contentHandler == null;
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: startCDATA
            lexicalHandler.endEntity(name);
    } 
 
    public void startCDATA() throws SAXException {
        if (forwardLexical)
            lexicalHandler.startCDATA();
    } 
 
    public void endCDATA() throws SAXException {
        if (forwardLexical)
            lexicalHandler.endCDATA();
    } 
 
    public void comment(char[] ch, int start, int length) throws SAXException {
        if (forwardLexical)
            lexicalHandler.comment(ch, start, length);
    } 
} 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: endEntity
        lexicalHandler.startEntity(name);
    } 
 
    public void endEntity(String name)
    throws SAXException {
        lexicalHandler.endEntity(name);
    } 
 
    public void startCDATA() 
    throws SAXException {
        lexicalHandler.startCDATA();
    } 
 
    public void endCDATA() 
    throws SAXException {
        lexicalHandler.endCDATA();
    } 
 
    public void comment(char ch[], int start, int len)
    throws SAXException {
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
See Code Examples for Java 8 LexicalHandler Methods: