net.fortuna.mstor.util
Class MetaDateFormat

java.lang.Object
  extended by net.fortuna.mstor.util.MetaDateFormat

public final class MetaDateFormat
extends Object

Defines a date format used in metadata.

Author:
benfortuna

Method Summary
 String format(Date date)
           
static MetaDateFormat getInstance()
           
 Date parse(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MetaDateFormat getInstance()
Returns:
Returns the instance.

format

public String format(Date date)
Parameters:
date - a date to format
Returns:
a string representation of the specified date

parse

public Date parse(String string)
           throws ParseException
Parameters:
string - a string representation of a date
Returns:
a date parsed from the specified string representation
Throws:
ParseException - thrown when the specified string is not a valid representation of a date