Class BomFilter

java.lang.Object
migratedb.v1.core.internal.util.BomFilter

public class BomFilter extends Object
  • Constructor Details

    • BomFilter

      public BomFilter()
  • Method Details

    • isBom

      public static boolean isBom(char c)
      Determine if this char is a UTF-8 Byte Order Mark
      Parameters:
      c - The char to check
      Returns:
      Whether this char is a UTF-8 Byte Order Mark
    • filterBomFromString

      public static String filterBomFromString(String s)
      Removes the UTF-8 Byte Order Mark from the start of a string if present.
      Parameters:
      s - The string
      Returns:
      The string without a Byte Order Mark at the start