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