Class Replacer


  • public class Replacer
    extends java.lang.Object
    Replaces values in the line passed to the process method.
    • Constructor Summary

      Constructors 
      Constructor Description
      Replacer​(java.lang.String token, java.lang.String value)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String process​(java.lang.String line)
      Perform the substitution
      • Methods inherited from class java.lang.Object

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

      • Replacer

        public Replacer​(java.lang.String token,
                        java.lang.String value)
        Public constructor
        Parameters:
        token - the name of the token to substitute
        value - the value to substitute
    • Method Detail

      • process

        public java.lang.String process​(java.lang.String line)
        Perform the substitution
        Parameters:
        line -
        Returns: