Class LogFormatHelper


  • public class LogFormatHelper
    extends Object
    Helper class that provides methods to detect the log format of a record.
    • Constructor Detail

      • LogFormatHelper

        public LogFormatHelper()
    • Method Detail

      • isUniformFormatLogHeader

        public static boolean isUniformFormatLogHeader​(String line)
        Determines whether the given line is the beginning of a UniformLogFormat log record.
        Parameters:
        line -
        Returns:
      • isODLFormatLogHeader

        public static boolean isODLFormatLogHeader​(String line)
        Determines whether the given line is the beginning of a ODL log record.
        Parameters:
        line -
        Returns:
      • isJSONFormatLogHeader

        public static boolean isJSONFormatLogHeader​(String line)
        Determines whether the given line is the beginning of a JSON log record.
        Parameters:
        line - String to test if json
        Returns:
        If the line is valid JSON
      • isCompressedFile

        public static boolean isCompressedFile​(String filename)
        Determines whether the given file is compressed (name ends with .gz).
        Parameters:
        filename -
        Returns: