Class BomFilter


  • public class BomFilter
    extends Object
    • Constructor Detail

      • BomFilter

        public BomFilter()
    • Method Detail

      • 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