Class TfsChangeLogConsumer
- java.lang.Object
-
- org.apache.maven.scm.util.AbstractConsumer
-
- org.apache.maven.scm.provider.tfs.command.consumer.TfsChangeLogConsumer
-
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
public class TfsChangeLogConsumer extends AbstractConsumer
-
-
Constructor Summary
Constructors Constructor Description TfsChangeLogConsumer(ScmLogger logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addChangeLog()
void
consumeLine(java.lang.String line)
private static java.text.DateFormat[]
createDateFormatsForLocaleAndTimeZone(java.util.Locale locale, java.util.TimeZone timeZone)
Build an array of DateFormats that are commonly used for this locale and timezone.java.util.List<ChangeSet>
getLogs()
boolean
hasBeenFed()
protected static java.util.Date
parseDate(java.lang.String dateString)
private static java.util.Date
parseWithFormats(java.lang.String input, java.text.DateFormat[] formats)
-
Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
getLogger, parseDate, parseDate, setLogger
-
-
-
-
Field Detail
-
PATTERN
private static final java.lang.String PATTERN
- See Also:
- Constant Field Values
-
PATTERN_ITEM
private static final java.lang.String PATTERN_ITEM
- See Also:
- Constant Field Values
-
logs
private java.util.List<ChangeSet> logs
-
buffer
private java.lang.String buffer
-
fed
boolean fed
-
-
Constructor Detail
-
TfsChangeLogConsumer
public TfsChangeLogConsumer(ScmLogger logger)
-
-
Method Detail
-
consumeLine
public void consumeLine(java.lang.String line)
-
getLogs
public java.util.List<ChangeSet> getLogs()
-
addChangeLog
private void addChangeLog()
-
hasBeenFed
public boolean hasBeenFed()
-
parseDate
protected static java.util.Date parseDate(java.lang.String dateString) throws java.text.ParseException
- Throws:
java.text.ParseException
-
parseWithFormats
private static java.util.Date parseWithFormats(java.lang.String input, java.text.DateFormat[] formats) throws java.text.ParseException
- Throws:
java.text.ParseException
-
createDateFormatsForLocaleAndTimeZone
private static java.text.DateFormat[] createDateFormatsForLocaleAndTimeZone(java.util.Locale locale, java.util.TimeZone timeZone)
Build an array of DateFormats that are commonly used for this locale and timezone.
-
-