Class HpelJsonFormatter

    • Constructor Detail

      • HpelJsonFormatter

        public HpelJsonFormatter()
    • Method Detail

      • formatRecord

        public java.lang.String formatRecord​(RepositoryLogRecord record,
                                             java.util.Locale locale)
        Description copied from class: HpelFormatter
        Formats a RepositoryLogRecord using the locale specified.
        Specified by:
        formatRecord in class HpelFormatter
        Parameters:
        record - the RepositoryLogRecord to be formatted
        locale - the locale to use when formatting this record.
        Returns:
        the formatted RepositoryLogRecord as string output.
      • getFooter

        public java.lang.String getFooter()
        Description copied from class: HpelFormatter
        Gets the formatter's footer. This method will return an empty string if the formatter does not have a footer as part of the formatter's format style.
        Specified by:
        getFooter in class HpelFormatter
        Returns:
        the footer as a string
      • getHeader

        public java.lang.String[] getHeader()
        Description copied from class: HpelPlainFormatter
        Gets the file header information. Implementations of the HpelPlainFormatter class will have a non-XML-based header.
        Overrides:
        getHeader in class HpelPlainFormatter
        Returns:
        the formatter's header as a String