47 lines
1.4 KiB
Java
47 lines
1.4 KiB
Java
|
package com.facetec.sdk;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
import java.sql.Date;
|
||
|
import java.text.DateFormat;
|
||
|
import java.text.ParseException;
|
||
|
import java.text.SimpleDateFormat;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class fk extends ek<Date> {
|
||
|
public static final en e = new en() { // from class: com.facetec.sdk.fk.4
|
||
|
@Override // com.facetec.sdk.en
|
||
|
public final <T> ek<T> e(dx dxVar, fv<T> fvVar) {
|
||
|
if (fvVar.a() == Date.class) {
|
||
|
return new fk();
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
};
|
||
|
private final DateFormat b = new SimpleDateFormat("MMM d, yyyy");
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
@Override // com.facetec.sdk.ek
|
||
|
/* renamed from: d, reason: merged with bridge method [inline-methods] */
|
||
|
public Date a(fu fuVar) throws IOException {
|
||
|
synchronized (this) {
|
||
|
if (fuVar.i() == gc.NULL) {
|
||
|
fuVar.l();
|
||
|
return null;
|
||
|
}
|
||
|
try {
|
||
|
return new Date(this.b.parse(fuVar.h()).getTime());
|
||
|
} catch (ParseException e2) {
|
||
|
throw new ei(e2);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
@Override // com.facetec.sdk.ek
|
||
|
public void b(ga gaVar, Date date) throws IOException {
|
||
|
synchronized (this) {
|
||
|
gaVar.b(date == null ? null : this.b.format((java.util.Date) date));
|
||
|
}
|
||
|
}
|
||
|
}
|