Class LuckyLyricsProvider

    • Constructor Detail

      • LuckyLyricsProvider

        public LuckyLyricsProvider()
    • Method Detail

      • sniffHTMLCharset

        public static String sniffHTMLCharset​(byte[] buf)
        Attempts to extract a character set from a byte buffer representing an HTML page.
        Parameters:
        buf - byte buffer with HTML data
        Returns:
        character set or null , if we were unable to extract
      • extractCharset

        public static String extractCharset​(String contentType)
        Attempts to extract a character set from a content type.
        Parameters:
        contentType - content type
        Returns:
        character set or null, if we were unable to extract