com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class SimpleFormatter

  • All Implemented Interfaces:
    IFormatter


    public final class SimpleFormatter
    extends Formatter

    Represents the default implementation of IFormatter interface.

    • Constructor Detail

      • SimpleFormatter

        public SimpleFormatter()

        Creates a new SimpleFormatter instance.

      • SimpleFormatter

        public SimpleFormatter(String header,
                       String footer)

        Creates a new SimpleFormatter instance.

        Parameters:
        header - The header.
        footer - The footer.
    • Method Detail

      • format

        public String format(LogEntry entry)

        Formats a log entry and return a string to be outputted.

        Specified by:
        format in interface IFormatter
        Overrides:
        format in class Formatter
        Parameters:
        entry - Log entry to format.
        Returns:
        String representing the log entry.
      • format

        public String format(Date date)

        Formats a datetime and return a string to be outputted.

        Specified by:
        format in interface IFormatter
        Overrides:
        format in class Formatter
        Parameters:
        date - The datetime value for formatting to string
        Returns:
        A string to be outputted