Class HpelJsonFormatter


public class HpelJsonFormatter extends HpelPlainFormatter
  • Constructor Details

    • HpelJsonFormatter

      public HpelJsonFormatter()
  • Method Details

    • formatRecord

      public String formatRecord(RepositoryLogRecord record, 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 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 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
    • setStartDatetime

      public void setStartDatetime(long datetime)
      Overrides:
      setStartDatetime in class HpelFormatter