RTEditor/src/main/java/com/onegravity/rteditor/converter/tagsoup/HTMLWriter.java
private void writeName(String uri, String localName, String qName,
                           boolean isElement) throws SAXException {
        String prefix = doPrefix(uri, qName, isElement);
        if (prefix != null && !"".equals(prefix)) {
            write(prefix);
            write(':');
        }
        if (localName != null && !"".equals(localName)) {
            write(localName);
        } else {
            int i = qName.indexOf(':');
            write(qName.substring(i + 1, qName.length()));
        }
    }
private void writeName(String uri, String localName, String qName,
                           boolean isElement) throws SAXException {
        String prefix = doPrefix(uri, qName, isElement);
        if (prefix != null && !"".equals(prefix)) {
            write(prefix);
            write(':');
        }
        if (localName != null && !"".equals(localName)) {
            write(localName);
        } else {
            int i = qName.indexOf(':');
            write(qName.substring(i + 1, qName.length()));
        }
    }
private void writeName ( String uri , String localName , String qName , boolean isElement ) throws SAXException { String prefix = doPrefix ( uri , qName , isElement ) ; if ( prefix != null && ! "" . equals ( prefix ) ) { write ( prefix ) ; write ( ' ' ) ; } if ( localName != null && ! "" . equals ( localName ) ) { write ( localName ) ; } else { int i = qName . indexOf ( ' ' ) ; write ( qName . substring ( i + 1 , qName . length ( ) ) ) ; } }
Write an element or attribute name.

@param uri       The Namespace URI.
@param localName The local name.
@param qName     The prefixed name, if available, or the empty string.
@param isElement true if this is an element name, false if it is an attribute
name.
@throws org.xml.sax.SAXException This method will throw an IOException wrapped in a
SAXException if there is an error writing the name.
Write an element or attribute name .