public XmlSerializer endTag(String namespace, String name) throws IOException,
            IllegalArgumentException, IllegalStateException {
        mNesting--;
        if (mInTag) {
            append(" />\n");
        } else {
            if (mIndent && mLineStart) {
                appendIndent(mNesting);
            }
            append("</");
            if (namespace != null) {
                append(namespace);
                append(':');
            }
            append(name);
            append(">\n");
        }
        mLineStart = true;
        mInTag = false;
        return this;
    }
Allocate a FastXmlSerializer with the given internal output buffer size.  If the
size is zero or negative, then the default buffer size will be used.

@param bufferSize Size in bytes of the in-memory output buffer that the writer will use.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/FastXmlSerializer.java