Class AbstractConsumer

java.lang.Object
org.apache.maven.scm.util.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 Details

    • logger

      protected final org.slf4j.Logger logger
  • Constructor Details

  • Method Details

    • 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.