Class AbstractConsumer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ScmLogger logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ScmLogger getLogger()  
      protected java.util.Date parseDate​(java.lang.String date, java.lang.String userPattern, java.lang.String defaultPattern)
      Converts the date timestamp from the output into a date object.
      protected java.util.Date parseDate​(java.lang.String date, java.lang.String userPattern, java.lang.String defaultPattern, java.util.Locale locale)
      Converts the date timestamp from the output into a date object.
      void setLogger​(ScmLogger logger)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.codehaus.plexus.util.cli.StreamConsumer

        consumeLine
    • Constructor Detail

      • AbstractConsumer

        public AbstractConsumer​(ScmLogger logger)
        AbstractConsumer constructor.
        Parameters:
        logger - The logger to use in the consumer
    • Method Detail

      • setLogger

        public void setLogger​(ScmLogger logger)
      • parseDate

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

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