Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-260

StringEscapeUtils should expose escape*() methods taking Writer argument

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2
    • None
    • None
    • N/A

    Description

      StringEscapeUtils.escapeXML(String) is the only exposed variant, but the package private Entities.XML class it uses under the covers has a variant taking a Writer. The StringEscapeUtils.escapeXML(Writer, String) variant would be much more efficient when incrementally escaping values and adding them one-by-one and could seemingly be exposed with very little effort. Ditto for the unescapeXML() case, and presumably other styles of escape/unescape (like HTML) that use the Entities class under the covers.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nrhope Norval Hope
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: