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,SvnRemoteInfoCommand.LsConsumer,SvnRemoveConsumer,SvnStatusConsumer
public abstract class AbstractConsumer extends java.lang.Object implements org.codehaus.plexus.util.cli.StreamConsumer
-
-
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 java.util.DateparseDate(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.DateparseDate(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.
-
-
-
Method Detail
-
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.- Parameters:
date- TODOuserPattern- TODOdefaultPattern- TODO- 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.- Parameters:
date- TODOuserPattern- TODOdefaultPattern- TODOlocale- TODO- Returns:
- a date representing the timestamp of the log entry
-
-