Package org.apache.maven.scm.util
Class AbstractConsumer
- java.lang.Object
-
- org.apache.maven.scm.util.AbstractConsumer
-
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
- Direct Known Subclasses:
AbstractFileCheckingConsumer,AbstractFileCheckingConsumer,GitBlameConsumer,GitChangeLogConsumer,GitCurrentBranchConsumer,GitDiffConsumer,GitDiffRawConsumer,GitInfoConsumer,GitLatestRevisionCommandConsumer,GitRemoteInfoConsumer,GitRemoveConsumer,GitStatusConsumer,HgConsumer,SvnAddConsumer,SvnBlameConsumer,SvnChangeLogConsumer,SvnDiffConsumer,SvnInfoConsumer,SvnListConsumer,SvnMkdirConsumer,SvnRemoveConsumer,SvnStatusConsumer
public abstract class AbstractConsumer extends Object implements org.codehaus.plexus.util.cli.StreamConsumer
- Author:
- Emmanuel Venisse
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description AbstractConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DateparseDate(String date, String userPattern, String defaultPattern)Converts the date timestamp from the output into a date object.protected DateparseDate(String date, String userPattern, String defaultPattern, Locale locale)Converts the date timestamp from the output into a date object.
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Detail
-
AbstractConsumer
public AbstractConsumer()
-
-
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- TODOuserPattern- TODOdefaultPattern- 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- TODOuserPattern- TODOdefaultPattern- TODOlocale- TODO- Returns:
- a date representing the timestamp of the log entry
-
-