Class StringReplacer


  • public class StringReplacer
    extends java.lang.Object
    The type String replacer.
    • Constructor Summary

      Constructors 
      Constructor Description
      StringReplacer​(java.lang.String patternString)
      Creates a new instance of StringReplacer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void replace​(java.io.Reader in, java.io.Writer out, GuardDB db, java.lang.String separator)
      Replace.
      void replace​(java.lang.String in, java.lang.StringBuffer result, java.util.Map map)
      Replace.
      void setPattern​(java.lang.String patternString)
      Sets pattern.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringReplacer

        public StringReplacer​(java.lang.String patternString)
        Creates a new instance of StringReplacer
        Parameters:
        patternString - the pattern string
    • Method Detail

      • setPattern

        public void setPattern​(java.lang.String patternString)
        Sets pattern.
        Parameters:
        patternString - the pattern string
      • replace

        public void replace​(java.lang.String in,
                            java.lang.StringBuffer result,
                            java.util.Map map)
        Replace.
        Parameters:
        in - the in
        result - the result
        map - the map
      • replace

        public void replace​(java.io.Reader in,
                            java.io.Writer out,
                            GuardDB db,
                            java.lang.String separator)
                     throws java.io.IOException
        Replace.
        Parameters:
        in - the in
        out - the out
        db - the db
        separator - the separator
        Throws:
        java.io.IOException - the io exception