com.appnexus.oas.mobilesdk.adcontroller.responseparser.XJSONResponseParser.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appnexusoasmobileadsdk-test Show documentation
Show all versions of appnexusoasmobileadsdk-test Show documentation
AppNexus OpenAdStream Android Advertising Libraries
???? 2 ? Jcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XJSONResponseParser java/lang/Object _instance LLcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XJSONResponseParser; TAG Ljava/lang/String; ()V Code
getClass ()Ljava/lang/Class;
java/lang/Class
getSimpleName ()Ljava/lang/String; LineNumberTable LocalVariableTable this getInstance N()Lcom/appnexus/oas/mobilesdk/adcontroller/responseparser/XJSONResponseParser;
StackMapTable parse +(Ljava/io/InputStream;I)Ljava/util/HashMap;
Exceptions ' java/io/IOException ) org/json/JSONException Signature Q(Ljava/io/InputStream;I)Ljava/util/HashMap; - java/util/HashMap
,
0 response
2 3 4 parseResponseData ,(Ljava/io/InputStream;)Ljava/util/ArrayList;
, 6 7 8 put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; is Ljava/io/InputStream; requestType I Ljava/util/HashMap; LocalVariableTypeTable 9Ljava/util/HashMap; \(Ljava/io/InputStream;)Ljava/util/ArrayList; B java/util/ArrayList
A
E org/json/JSONObject
G H I getStringFromInputStream )(Ljava/io/InputStream;)Ljava/lang/String;
D K L (Ljava/lang/String;)V N Ad
D P Q R getJSONArray ((Ljava/lang/String;)Lorg/json/JSONArray;
T V U org/json/JSONArray W X
getJSONObject (I)Lorg/json/JSONObject; Z 0 \ FileUrl
D ^ _ ` has (Ljava/lang/String;)Z
D b c d getString &(Ljava/lang/String;)Ljava/lang/String; f Pos h ImpUrl j ClkUrl l H n W p AdType r Text t ,com/appnexus/oas/mobilesdk/model/AdJsonModel
s
s w x L
setFileUrl
s z { L setImpUrl
s } ~ L setClkUrl
s ? ? L setH
s ? ? L setW
s ? ? L setAdType
s ? ? L setText
s ? ? L setPos
A ? ? ? add (Ljava/lang/Object;)Z ? java/lang/StringBuilder ? RESPONSE ::
? K
? ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
? ? ? toString
? ? ? -com/appnexus/oas/mobilesdk/utilities/XLogUtil ? ? d '(Ljava/lang/String;Ljava/lang/String;)V
T ? ? ? length ()I adJsonArray Ljava/util/ArrayList; jsonObj Lorg/json/JSONObject; jsonArray Lorg/json/JSONArray; i
jsonObject fileUrl adModel .Lcom/appnexus/oas/mobilesdk/model/AdJsonModel; ELjava/util/ArrayList; ? java/io/InputStream ? java/lang/String
?
? java/io/BufferedReader ? java/io/InputStreamReader
? ? ? (Ljava/io/InputStream;)V
? ? ? (Ljava/io/Reader;)V
? ? ? readLine
? ? ?
close br Ljava/io/BufferedReader; sb Ljava/lang/StringBuilder; line ? java/lang/Throwable
SourceFile XJSONResponseParser.java !
B *? **? ? ? ? E ? ?
? Y? !? ? ? ! " # $ % &