Class AbstractConsumer

  • All Implemented Interfaces:
    org.codehaus.plexus.util.cli.StreamConsumer

    public abstract class AbstractConsumer
    extends Object
    implements org.codehaus.plexus.util.cli.StreamConsumer
    Author:
    Emmanuel Venisse
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
    • Method Detail

      • parseDate

        protected Date parseDate​(String date,
                                 String userPattern,
                                 String defaultPattern)
        Converts the date timestamp from the output into a date object.
        Parameters:
        date - TODO
        userPattern - TODO
        defaultPattern - TODO
        Returns:
        A date representing the timestamp of the log entry.
      • parseDate

        protected Date parseDate​(String date,
                                 String userPattern,
                                 String defaultPattern,
                                 Locale locale)
        Converts the date timestamp from the output into a date object.
        Parameters:
        date - TODO
        userPattern - TODO
        defaultPattern - TODO
        locale - TODO
        Returns:
        A date representing the timestamp of the log entry.