org.gcube.data.spd.obisplugin.util
Class RegExpDateFormat

java.lang.Object
  extended by org.gcube.data.spd.obisplugin.util.RegExpDateFormat

public class RegExpDateFormat
extends Object

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected  DateFormat dateFormat
           
protected  Pattern pattern
           
 
Constructor Summary
RegExpDateFormat(String regExp, String datePattern)
           
 
Method Summary
 boolean match(String input)
           
 Date parse(String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern

protected Pattern pattern

dateFormat

protected DateFormat dateFormat
Constructor Detail

RegExpDateFormat

public RegExpDateFormat(String regExp,
                        String datePattern)
Method Detail

match

public boolean match(String input)

parse

public Date parse(String input)
           throws ParseException
Throws:
ParseException


Copyright © 2013. All Rights Reserved.