149 lines
5.3 KiB
Java
149 lines
5.3 KiB
Java
|
package o;
|
||
|
|
||
|
import java.io.DataInput;
|
||
|
import java.io.DataOutput;
|
||
|
import java.io.Externalizable;
|
||
|
import java.io.IOException;
|
||
|
import java.io.InvalidClassException;
|
||
|
import java.io.ObjectInput;
|
||
|
import java.io.ObjectOutput;
|
||
|
import java.io.StreamCorruptedException;
|
||
|
import org.threeten.bp.OffsetDateTime;
|
||
|
|
||
|
/* renamed from: o.gsD, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class C15501gsD implements Externalizable {
|
||
|
static final byte DURATION_TYPE = 1;
|
||
|
static final byte INSTANT_TYPE = 2;
|
||
|
static final byte LOCAL_DATE_TIME_TYPE = 4;
|
||
|
static final byte LOCAL_DATE_TYPE = 3;
|
||
|
static final byte LOCAL_TIME_TYPE = 5;
|
||
|
static final byte MONTH_DAY_TYPE = 64;
|
||
|
static final byte OFFSET_DATE_TIME_TYPE = 69;
|
||
|
static final byte OFFSET_TIME_TYPE = 66;
|
||
|
static final byte YEAR_MONTH_TYPE = 68;
|
||
|
static final byte YEAR_TYPE = 67;
|
||
|
static final byte ZONED_DATE_TIME_TYPE = 6;
|
||
|
static final byte ZONE_OFFSET_TYPE = 8;
|
||
|
static final byte ZONE_REGION_TYPE = 7;
|
||
|
private static final long serialVersionUID = -7683839454370182990L;
|
||
|
private Object object;
|
||
|
private byte type;
|
||
|
|
||
|
public C15501gsD() {
|
||
|
}
|
||
|
|
||
|
public C15501gsD(byte b, Object obj) {
|
||
|
this.type = b;
|
||
|
this.object = obj;
|
||
|
}
|
||
|
|
||
|
@Override // java.io.Externalizable
|
||
|
public final void writeExternal(ObjectOutput objectOutput) throws IOException {
|
||
|
writeInternal(this.type, this.object, objectOutput);
|
||
|
}
|
||
|
|
||
|
static void writeInternal(byte b, Object obj, DataOutput dataOutput) throws IOException {
|
||
|
dataOutput.writeByte(b);
|
||
|
if (b != 64) {
|
||
|
switch (b) {
|
||
|
case 1:
|
||
|
((C15519gso) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
case 2:
|
||
|
((C15523gss) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
case 3:
|
||
|
((C15520gsp) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
case 4:
|
||
|
((C15522gsr) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
case 5:
|
||
|
((C15521gsq) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
case 6:
|
||
|
((gsN) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
case 7:
|
||
|
((gsE) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
case 8:
|
||
|
((gsI) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
default:
|
||
|
switch (b) {
|
||
|
case 66:
|
||
|
((C15524gst) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
case 67:
|
||
|
((gsF) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
case 68:
|
||
|
((gsG) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
case 69:
|
||
|
((OffsetDateTime) obj).writeExternal(dataOutput);
|
||
|
return;
|
||
|
default:
|
||
|
throw new InvalidClassException("Unknown serialized type");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
((C15529gsy) obj).writeExternal(dataOutput);
|
||
|
}
|
||
|
|
||
|
@Override // java.io.Externalizable
|
||
|
public final void readExternal(ObjectInput objectInput) throws IOException {
|
||
|
byte readByte = objectInput.readByte();
|
||
|
this.type = readByte;
|
||
|
this.object = readInternal(readByte, objectInput);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static Object read(DataInput dataInput) throws IOException {
|
||
|
return readInternal(dataInput.readByte(), dataInput);
|
||
|
}
|
||
|
|
||
|
private static Object readInternal(byte b, DataInput dataInput) throws IOException {
|
||
|
if (b != 64) {
|
||
|
switch (b) {
|
||
|
case 1:
|
||
|
return C15519gso.readExternal(dataInput);
|
||
|
case 2:
|
||
|
return C15523gss.readExternal(dataInput);
|
||
|
case 3:
|
||
|
return C15520gsp.readExternal(dataInput);
|
||
|
case 4:
|
||
|
return C15522gsr.readExternal(dataInput);
|
||
|
case 5:
|
||
|
return C15521gsq.readExternal(dataInput);
|
||
|
case 6:
|
||
|
return gsN.readExternal(dataInput);
|
||
|
case 7:
|
||
|
return gsE.readExternal(dataInput);
|
||
|
case 8:
|
||
|
return gsI.readExternal(dataInput);
|
||
|
default:
|
||
|
switch (b) {
|
||
|
case 66:
|
||
|
return C15524gst.readExternal(dataInput);
|
||
|
case 67:
|
||
|
return gsF.readExternal(dataInput);
|
||
|
case 68:
|
||
|
return gsG.readExternal(dataInput);
|
||
|
case 69:
|
||
|
return OffsetDateTime.readExternal(dataInput);
|
||
|
default:
|
||
|
throw new StreamCorruptedException("Unknown serialized type");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return C15529gsy.readExternal(dataInput);
|
||
|
}
|
||
|
|
||
|
private Object readResolve() {
|
||
|
return this.object;
|
||
|
}
|
||
|
}
|