Class SpamProtector

java.lang.Object
de.aikiit.spamprotector.converter.SpamProtector

public final class SpamProtector extends Object
Class encapsulates the actual character conversion logics.
  • Constructor Details

    • SpamProtector

      public SpamProtector()
  • Method Details

    • toPlain

      public static String toPlain(String input)
      Converts an encoded value into a plain one.
      Parameters:
      input - encoded value as set in an enumeration instance of this class.
      Returns:
      encoded value or input if no mapping is found.
    • toEncoded

      public static String toEncoded(String input)
      Converts a plain value into an encoded one.
      Parameters:
      input - plain value that is transformed by an enumeration instance of this class.
      Returns:
      encoded value or input if no mapping is found.