what-the-bank/sources/com/kofax/kmc/ken/engines/data/BarCodeResult.java

88 lines
3.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.kmc.ken.engines.data;
import com.kofax.kmc.ken.engines.version.KenVersion;
import com.kofax.kmc.kut.utilities.SdkVersion;
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
import com.kofax.kmc.kut.utilities.error.KmcRuntimeException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
/* loaded from: classes3.dex */
public class BarCodeResult implements Serializable {
private static final long serialVersionUID = 6885777831842993257L;
private transient BoundingTetragon bV;
private transient String value;
private transient BarCodeType bU = BarCodeType.UNKNOWN;
private transient BarCodeDirection bW = BarCodeDirection.UNKNOWN;
private transient BarCodeDataFormat bX = BarCodeDataFormat.UNKNOWN;
private void writeObject(ObjectOutputStream objectOutputStream) throws IOException {
objectOutputStream.defaultWriteObject();
objectOutputStream.writeObject(BarCodeResult.class.getName());
objectOutputStream.writeObject(KenVersion.getPackageVersion());
objectOutputStream.writeObject(this.bU);
objectOutputStream.writeObject(this.bV);
objectOutputStream.writeObject(this.value);
objectOutputStream.writeObject(this.bW);
objectOutputStream.writeObject(this.bX);
}
private void readObject(ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException, KmcRuntimeException {
objectInputStream.defaultReadObject();
if (BarCodeResult.class.getName().compareToIgnoreCase((String) objectInputStream.readObject()) == 0) {
if (SdkVersion.versionCompatible(KenVersion.getPackageVersion(), (String) objectInputStream.readObject()).booleanValue()) {
this.bU = (BarCodeType) objectInputStream.readObject();
this.bV = (BoundingTetragon) objectInputStream.readObject();
this.value = (String) objectInputStream.readObject();
this.bW = (BarCodeDirection) objectInputStream.readObject();
this.bX = (BarCodeDataFormat) objectInputStream.readObject();
return;
}
throw new KmcRuntimeException(ErrorInfo.KMC_GN_DESERIALIZE_VERSION_ERROR);
}
throw new KmcRuntimeException(ErrorInfo.KMC_GN_DESERIALIZE_OBJECT_ERROR);
}
public void setValue(String str) {
this.value = str;
}
public void setType(BarCodeType barCodeType) {
this.bU = barCodeType;
}
public void setDirection(BarCodeDirection barCodeDirection) {
this.bW = barCodeDirection;
}
public void setDataFormat(BarCodeDataFormat barCodeDataFormat) {
this.bX = barCodeDataFormat;
}
public void setBoundingBox(BoundingTetragon boundingTetragon) {
this.bV = boundingTetragon;
}
public String getValue() {
return this.value;
}
public BarCodeType getType() {
return this.bU;
}
public BarCodeDirection getDirection() {
return this.bW;
}
public BarCodeDataFormat getDataFormat() {
return this.bX;
}
public BoundingTetragon getBoundingBox() {
return this.bV;
}
}