public class DateParser extends Object
Constructor and Description |
---|
DateParser() |
Modifier and Type | Method and Description |
---|---|
static int |
getIndexAfterLastNonDigit(String s) |
static int |
getIndexFirstNonLetter(String s) |
static Date |
parse(org.apache.uima.jcas.JCas jcas,
String dateString)
First try parsing full date (month, day and year) using java.util.Date
If that fails, try extracting at least part of the date
|
public static Date parse(org.apache.uima.jcas.JCas jcas, String dateString)
public static int getIndexFirstNonLetter(String s)
public static int getIndexAfterLastNonDigit(String s)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.