private static int detectEnd(StringBuilder builder, int buffLength, int startPos, String keyword,
            int keywordLength, String separator) {
        if (separator.charAt(0) == '>') {
            return detectEndXml(builder, buffLength, startPos, keyword, keywordLength);
        } else if (separator.contains("\"")) {
            return detectEndJson(builder, buffLength, startPos);
        } else {
            return detectEndNoXml(builder, buffLength, startPos);
        }
    }
detect the end position of sensitive data

@param builder raw data
@param buffLength the length of raw data
@param startPos the start position of sensitive data
@param keyword the keyword of sensitive data
@param keywordLength the length of keyword
@param separator the specified separator char
@return the end position of sensitive data
inlong-common/src/main/java/org/apache/inlong/common/util/MaskDataUtils.java