ContentHandler endPrefixMapping - top ranked examples from Open Source projects

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

This code example shows how to use the following methods:endPrefixMapping
  /** 
   * {@inheritDoc} 
   */ 
  public void endPrefixMapping(String prefix) throws SAXException {
    System.err.println("endPrefixMapping(\"" + prefix + "\");");
    this.handler.endPrefixMapping(prefix);
  } 
 
  /** 
   * {@inheritDoc} 
   */ 
  public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException {
    System.err.println("ignorableWhitespace(\""+new String(ch, start, length)+"\");");
    this.handler.ignorableWhitespace(ch, start, length);
  } 
 
  /** 
   * {@inheritDoc} 
   */ 
  public void processingInstruction(String target, String data) throws SAXException {
5
CodeRank
This code example shows how to use the following methods:endDocument, endPrefixMapping
        } 
 
        @Override 
        public void endDocument() throws SAXException {
            endPrefixMapping(LocationAttributes.PREFIX);
            nextHandler.endDocument();
        } 
 
        @Override 
        public void startElement(String uri, String loc, String raw, Attributes attrs) throws SAXException {
            // Add location attributes to the element 
            nextHandler.startElement(uri, loc, raw, LocationAttributes.addLocationAttributes(locator, attrs));
        } 
 
        @Override 
        public void endElement(String arg0, String arg1, String arg2) throws SAXException {
            nextHandler.endElement(arg0, arg1, arg2);
        } 
 
        @Override 

5
CodeRank
This code example shows how to use the following methods:getClass, setResult, endPrefixMapping, setDocumentLocator, startDocument
     * {@link ContentHandler} implementation. 
     */ 
    public void endPrefixMapping(String prefix) throws SAXException
    { 
        initContentHandler(); 
        contentHandler.endPrefixMapping(prefix);
    } 
 
    /** 
     * {@link ContentHandler} implementation. 
     */ 
    public void ignorableWhitespace(char [] ch, int start, int length)
        throws SAXException
    { 
        /* 
         * Pass ignorable whitespace if we have a content handler. Before content handler 
         * initialization simply ignore these calls. We could queue SAX events until 
         * content handler is available, but would it make any sense? 
         */ 
        if (contentHandler != null)

6
CodeRank
This code example shows how to use the following methods:endDocument, endPrefixMapping
            handler.startPrefixMapping(XSD_PREFIX, XSD_URI);
        } 
 
        private void endDocument() throws SAXException {
            try { 
                handler.endPrefixMapping(XSD_PREFIX);
            } catch (Exception ex) {
                LOG.warn("Unable to end prefix mapping: " + XSD_PREFIX, ex);
            } 
            try { 
                handler.endPrefixMapping(JSON_PREFIX);
            } catch (Exception ex) {
                LOG.warn("Unable to end prefix mapping: " + JSON_PREFIX, ex);
            } 
            handler.endDocument();
        } 
 
        @Override 
        public void run() { 
            try { 
6
CodeRank
This code example shows how to use the following methods:endPrefixMapping
    public void endElement(String uri, String localname, String qName) throws SAXException {
        contentHandler.endElement(uri, localname, qName);
    } 
 
    public void endPrefixMapping(String s) throws SAXException {
        contentHandler.endPrefixMapping(s);
    } 
 
    public void ignorableWhitespace(char[] chars, int start, int length) throws SAXException {
        contentHandler.ignorableWhitespace(chars, start, length);
    } 
 
    public void processingInstruction(String s, String s1) throws SAXException {
        contentHandler.processingInstruction(s, s1);
    } 
 
    public void setDocumentLocator(Locator locator) {
        contentHandler.setDocumentLocator(locator);
    } 
 
5
CodeRank
This code example shows how to use the following methods:endElement, endPrefixMapping
	 */ 
	public void endElement(String uri, String localName, String qName) throws SAXException
	{ 
		if("definitions".equals(qName))
		{ 
			outputHandler.endPrefixMapping("tns");
			outputHandler.endPrefixMapping("soapenc");
		} 
		outputHandler.endElement(uri, localName, qName);
	} 
 
	/* (non-Javadoc) 
	 * @see org.xml.sax.ContentHandler#characters(char[], int, int) 
	 */ 
	public void characters(char[] ch, int start, int length) throws SAXException
	{ 
		outputHandler.characters(ch, start, length);
	} 
 
	/* (non-Javadoc) 
5
CodeRank
This code example shows how to use the following methods:endPrefixMapping
            contentHandler.endElement(uri, localname, qName);
    } 
 
    public void endPrefixMapping(String s) throws SAXException {
        if (forwardContent)
            contentHandler.endPrefixMapping(s);
    } 
 
    public void ignorableWhitespace(char[] chars, int start, int length) throws SAXException {
        if (forwardContent)
            contentHandler.ignorableWhitespace(chars, start, length);
    } 
 
    public void processingInstruction(String s, String s1) throws SAXException {
        if (forwardContent)
            contentHandler.processingInstruction(s, s1);
    } 
 
    public void setDocumentLocator(Locator locator) {
        if (forwardContent)
5
CodeRank
This code example shows how to use the following methods:endPrefixMapping
     * @param arg0 
     * @throws SAXException 
     * @see org.xml.sax.ContentHandler#endPrefixMapping(java.lang.String) 
     */ 
    public void endPrefixMapping(String arg0) throws SAXException {
        delegate.endPrefixMapping(arg0);
    } 
 
    /** 
     * @param arg0 
     * @param arg1 
     * @param arg2 
     * @throws SAXException 
     * @see org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int) 
     */ 
    public void ignorableWhitespace(char[] arg0, int arg1, int arg2)
            throws SAXException {
        delegate.ignorableWhitespace(arg0, arg1, arg2);
    } 
 
4
CodeRank
This code example shows how to use the following methods:endPrefixMapping
This code example shows how to use the following methods:endPrefixMapping
endPrefixMapping Method Overview
End the scope of a prefix-URI mapping.
See Code Examples for other Java 8 ContentHandler Methods: