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
public abstract class AbstractConsumer
- extends Object
- implements org.codehaus.plexus.util.cli.StreamConsumer
- Author:
- Emmanuel Venisse
| 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 |
AbstractConsumer
public AbstractConsumer(ScmLogger logger)
- AbstractConsumer constructor.
- Parameters:
logger - The logger to use in the consumer
getLogger
public ScmLogger getLogger()
setLogger
public void setLogger(ScmLogger logger)
parseDate
protected Date parseDate(String date,
String userPattern,
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 Date parseDate(String date,
String userPattern,
String defaultPattern,
Locale locale)
- Converts the date timestamp from the output into a date object.
- Returns:
- A date representing the timestamp of the log entry.
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.