uk.ac.cisban.rod.parsing.util
Class ParseDate

java.lang.Object
  extended by uk.ac.cisban.rod.parsing.util.ParseDate

public class ParseDate
extends java.lang.Object

Parses the date from a given string in the format yyyy-M-dd_HH-m-ss.

Since:
3-Feb-2009 10:54:54 AM
Author:
Morgan Taschuk

Constructor Summary
ParseDate()
           
 
Method Summary
 java.util.Date parseDate(java.lang.String filename)
          Parse out the date from the string originally part of the image filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseDate

public ParseDate()
Method Detail

parseDate

public java.util.Date parseDate(java.lang.String filename)
                         throws java.text.ParseException
Parse out the date from the string originally part of the image filename. Having it in its own section is not just clearer, but helps with the unit testing.

Parameters:
filename - the string to parse the date from
Returns:
the Date object that matches the input string
Throws:
java.text.ParseException


Copyright © 2010. All Rights Reserved.