org.apache.maven.plugin.multichanges.util
Class DateFormatter
java.lang.Object
org.apache.maven.plugin.multichanges.util.DateFormatter
public class DateFormatter
- extends Object
This class provides a method to convert a date in the changes plugin format
(yyyy-MM-dd) to a date in RSS format (RFC 822).
Method Summary |
static String |
convertDate(String changesDate)
Converts a date in the changes plugin format (yyyy-MM-dd) to a date in
RSS format (RFC 822). |
static boolean |
isChangesDate(String aString)
Test if a String is a date in the changes plugin format (yyyy-MM-dd). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateFormatter
public DateFormatter()
convertDate
public static final String convertDate(String changesDate)
- Converts a date in the changes plugin format (yyyy-MM-dd) to a date in
RSS format (RFC 822).
- Parameters:
changesDate
- the date to convert
- Returns:
- the date in the RFC 822 format. An empty String if an exception
occurs.
isChangesDate
public static final boolean isChangesDate(String aString)
- Test if a String is a date in the changes plugin format (yyyy-MM-dd).
- Parameters:
aString
- the string to test
- Returns:
- true if the String can be parsed as a Date in the format
yyyy-MM-dd.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.