blob: 23684695001d4e89f4b8a52c157d1f5b3cebba21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package cgeo.geocaching.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class SynchronizedDateFormat {
private final SimpleDateFormat format;
public SynchronizedDateFormat(final String pattern, final Locale locale) {
format = new SimpleDateFormat(pattern, locale);
}
public synchronized Date parse(final String input) throws ParseException {
return format.parse(input);
}
}
|