.class public final Lcom/mbridge/msdk/foundation/same/c/a; .super Ljava/lang/Object; .source "SourceFile" # direct methods .method public static a(Landroid/graphics/Bitmap;)Ljava/io/InputStream; .locals 4 const/4 v0, 0x0 .line 26 :try_start_0 new-instance v1, Ljava/io/ByteArrayOutputStream; invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;->()V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2 .catchall {:try_start_0 .. :try_end_0} :catchall_1 .line 27 :try_start_1 sget-object v2, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat; const/16 v3, 0x64 invoke-virtual {p0, v2, v3, v1}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z .line 28 new-instance p0, Ljava/io/ByteArrayInputStream; invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B move-result-object v2 invoke-direct {p0, v2}, Ljava/io/ByteArrayInputStream;->([B)V :try_end_1 .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 .line 36 :try_start_2 invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->close()V :try_end_2 .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0 goto :goto_0 :catch_0 move-exception v0 .line 38 sget-boolean v1, Lcom/mbridge/msdk/MBridgeConstans;->DEBUG:Z if-eqz v1, :cond_0 .line 39 invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V :cond_0 :goto_0 move-object v0, p0 goto :goto_2 :catchall_0 move-exception p0 move-object v0, v1 goto :goto_3 :catch_1 move-exception p0 goto :goto_1 :catchall_1 move-exception p0 goto :goto_3 :catch_2 move-exception p0 move-object v1, v0 .line 30 :goto_1 :try_start_3 sget-boolean v2, Lcom/mbridge/msdk/MBridgeConstans;->DEBUG:Z if-eqz v2, :cond_1 .line 31 invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_0 :cond_1 if-eqz v1, :cond_2 .line 36 :try_start_4 invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->close()V :try_end_4 .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_3 goto :goto_2 :catch_3 move-exception p0 .line 38 sget-boolean v1, Lcom/mbridge/msdk/MBridgeConstans;->DEBUG:Z if-eqz v1, :cond_2 .line 39 invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V :cond_2 :goto_2 return-object v0 :goto_3 if-eqz v0, :cond_3 .line 36 :try_start_5 invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V :try_end_5 .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4 goto :goto_4 :catch_4 move-exception v0 .line 38 sget-boolean v1, Lcom/mbridge/msdk/MBridgeConstans;->DEBUG:Z if-eqz v1, :cond_3 .line 39 invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V .line 43 :cond_3 :goto_4 throw p0 .end method