public class org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput extends java.lang.Object implements org.apache.dubbo.common.serialize.ObjectInput
{
private final java.io.BufferedReader reader;
public void <init>(java.io.InputStream)
{
java.io.BufferedReader v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
java.io.InputStreamReader v;
java.io.InputStream v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v := @parameter: java.io.InputStream;
specialinvoke v.<java.lang.Object: void <init>()>();
v = new java.io.BufferedReader;
v = new java.io.InputStreamReader;
specialinvoke v.<java.io.InputStreamReader: void <init>(java.io.InputStream)>(v);
specialinvoke v.<java.io.BufferedReader: void <init>(java.io.Reader)>(v);
v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.io.BufferedReader reader> = v;
return;
}
public boolean readBool() throws java.io.IOException
{
java.lang.Object v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
boolean v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object read(java.lang.Class)>(class "Lcom/google/protobuf/BoolValue;");
v = virtualinvoke v.<com.google.protobuf.BoolValue: boolean getValue()>();
return v;
}
public byte readByte() throws java.io.IOException
{
int v;
java.lang.Object v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object read(java.lang.Class)>(class "Lcom/google/protobuf/Int32Value;");
v = virtualinvoke v.<com.google.protobuf.Int32Value: int getValue()>();
return v;
}
public short readShort() throws java.io.IOException
{
int v;
java.lang.Object v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object read(java.lang.Class)>(class "Lcom/google/protobuf/Int32Value;");
v = virtualinvoke v.<com.google.protobuf.Int32Value: int getValue()>();
return v;
}
public int readInt() throws java.io.IOException
{
int v;
java.lang.Object v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object read(java.lang.Class)>(class "Lcom/google/protobuf/Int32Value;");
v = virtualinvoke v.<com.google.protobuf.Int32Value: int getValue()>();
return v;
}
public long readLong() throws java.io.IOException
{
java.lang.Object v;
long v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object read(java.lang.Class)>(class "Lcom/google/protobuf/Int64Value;");
v = virtualinvoke v.<com.google.protobuf.Int64Value: long getValue()>();
return v;
}
public float readFloat() throws java.io.IOException
{
float v;
java.lang.Object v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object read(java.lang.Class)>(class "Lcom/google/protobuf/FloatValue;");
v = virtualinvoke v.<com.google.protobuf.FloatValue: float getValue()>();
return v;
}
public double readDouble() throws java.io.IOException
{
java.lang.Object v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
double v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object read(java.lang.Class)>(class "Lcom/google/protobuf/DoubleValue;");
v = virtualinvoke v.<com.google.protobuf.DoubleValue: double getValue()>();
return v;
}
public java.lang.String readUTF() throws java.io.IOException
{
java.lang.Object v;
java.lang.String v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object read(java.lang.Class)>(class "Lcom/google/protobuf/StringValue;");
v = virtualinvoke v.<com.google.protobuf.StringValue: java.lang.String getValue()>();
return v;
}
public byte[] readBytes() throws java.io.IOException
{
com.google.protobuf.ByteString v;
byte[] v;
java.lang.Object v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object read(java.lang.Class)>(class "Lcom/google/protobuf/BytesValue;");
v = virtualinvoke v.<com.google.protobuf.BytesValue: com.google.protobuf.ByteString getValue()>();
v = virtualinvoke v.<com.google.protobuf.ByteString: byte[] toByteArray()>();
return v;
}
public java.lang.Object readObject()
{
java.lang.UnsupportedOperationException v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = new java.lang.UnsupportedOperationException;
specialinvoke v.<java.lang.UnsupportedOperationException: void <init>(java.lang.String)>("Provide the protobuf message type you want to read.");
throw v;
}
public java.lang.Object readObject(java.lang.Class) throws java.io.IOException
{
java.lang.Class v;
java.lang.Object v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v := @parameter: java.lang.Class;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object read(java.lang.Class)>(v);
return v;
}
public java.lang.Object readObject(java.lang.Class, java.lang.reflect.Type) throws java.io.IOException
{
java.lang.reflect.Type v;
java.lang.Class v;
java.lang.Object v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v := @parameter: java.lang.Class;
v := @parameter: java.lang.reflect.Type;
v = virtualinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.Object readObject(java.lang.Class)>(v);
return v;
}
private java.lang.String readLine() throws java.io.IOException
{
int v;
java.io.BufferedReader v;
java.lang.String v, v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
java.io.EOFException v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.io.BufferedReader reader>;
v = virtualinvoke v.<java.io.BufferedReader: java.lang.String readLine()>();
if v == null goto label;
v = virtualinvoke v.<java.lang.String: java.lang.String trim()>();
v = virtualinvoke v.<java.lang.String: int length()>();
if v != 0 goto label;
label:
v = new java.io.EOFException;
specialinvoke v.<java.io.EOFException: void <init>()>();
throw v;
label:
return v;
}
private java.lang.Object read(java.lang.Class) throws java.io.IOException
{
java.lang.IllegalArgumentException v;
java.lang.Class v;
java.lang.Object v;
java.lang.String v, v, v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
boolean v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v := @parameter: java.lang.Class;
v = staticinvoke <org.apache.dubbo.common.serialize.protobuf.support.ProtobufUtils: boolean isSupported(java.lang.Class)>(v);
if v != 0 goto label;
v = new java.lang.IllegalArgumentException;
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("This serialization only support google protobuf entity, the class is :\u0001");
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>(v);
throw v;
label:
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.String readLine()>();
v = staticinvoke <org.apache.dubbo.common.serialize.protobuf.support.ProtobufUtils: java.lang.Object deserializeJson(java.lang.String,java.lang.Class)>(v, v);
return v;
}
public java.lang.Throwable readThrowable() throws java.io.IOException
{
java.lang.Throwable v;
java.lang.Object v;
java.lang.String v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.String readLine()>();
v = staticinvoke <org.apache.dubbo.common.serialize.protobuf.support.ProtobufUtils: java.lang.Object deserializeJson(java.lang.String,java.lang.Class)>(v, class "Lorg/apache/dubbo/common/serialize/protobuf/support/wrapper/ThrowablePB$ThrowableProto;");
v = staticinvoke <org.apache.dubbo.common.serialize.protobuf.support.ProtobufUtils: java.lang.Throwable convertToException(org.apache.dubbo.common.serialize.protobuf.support.wrapper.ThrowablePB$ThrowableProto)>(v);
return v;
}
public java.util.Map readAttachments() throws java.io.IOException, java.lang.ClassNotFoundException
{
java.util.Map v;
java.util.function.BiConsumer v;
java.lang.Object v;
java.util.HashMap v;
java.lang.String v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = specialinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.String readLine()>();
v = staticinvoke <org.apache.dubbo.common.serialize.protobuf.support.ProtobufUtils: java.lang.Object deserializeJson(java.lang.String,java.lang.Class)>(v, class "Lorg/apache/dubbo/common/serialize/protobuf/support/wrapper/MapValue$Map;");
v = virtualinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.wrapper.MapValue$Map: java.util.Map getAttachmentsMap()>();
v = new java.util.HashMap;
specialinvoke v.<java.util.HashMap: void <init>()>();
v = staticinvoke <org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput$lambda_readAttachments_0__639: java.util.function.BiConsumer bootstrap$(java.util.Map)>(v);
interfaceinvoke v.<java.util.Map: void forEach(java.util.function.BiConsumer)>(v);
return v;
}
public java.lang.Object readEvent() throws java.io.IOException, java.lang.ClassNotFoundException
{
java.lang.String v;
org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput v;
boolean v;
v := @this: org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput;
v = virtualinvoke v.<org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectInput: java.lang.String readUTF()>();
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>("H");
if v == 0 goto label;
v = <org.apache.dubbo.common.constants.CommonConstants: java.lang.String HEARTBEAT_EVENT>;
label:
return v;
}
}