title: Where can I access StringUtils.replaceEach()?
body: <p>The answer to <a href="https://stackoverflow.com/questions/4874626/java-escape-html/4874768#4874768">Java escape HTML</a> shows <code>StringUtils.replaceEach()</code> which runs similar to multiple <code>StringUtils.replace()</code>s, but accepting arrays of <code>String</code>s instead of having to do each replace individually.</p>
  
  <p>For example:</p>
  
  <pre><code>str = StringUtils.replace(str, "&amp;", "&amp;amp;");
  str = StringUtils.replace(str, "\"", "&amp;quot;");
  str = StringUtils.replace(str, "&lt;", "&amp;lt;");
  str = StringUtils.replace(str, "&gt;", "&amp;gt;");
  </code></pre>
  
  <p>...becomes...</p>
  
  <pre><code>str = StringUtils.replaceEach(str,
      new String[]{"&amp;", "\"", "&lt;", "&gt;"},
      new String[]{"&amp;amp;", "&amp;quot;", "&amp;lt;", "&amp;gt;"})
  </code></pre>
  
  <p>Much cleaner.</p>
  
  <p><strong>Where can I access <code>StringUtils.replace()</code>?</strong></p>
  
  <p>I have tried importing the following, to no avail:</p>
  
  <ol>
  <li><code>org.springframework.util.StringUtils</code></li>
  <li><code>org.apache.soap.util.StringUtils</code></li>
  <li><code>org.apache.axis.utils.StringUtils</code></li>
  <li><code>com.ibm.wsdl.util.StringUtils</code></li>
  </ol>
  
  <p>They each have <code>.replace()</code>, of course.</p>