i.java 23.3 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687
package com.instabug.library.internal.d.a;

import android.content.Context;
import com.instabug.library.util.InstabugSDKLogger;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Serializable;

public class i
  extends c<String, Serializable>
{
  private File a;
  private final File b;
  
  public i(Context paramContext, String paramString1, String paramString2)
  {
    super(paramString1);
    this.b = paramContext.getCacheDir();
    this.a = new File(this.b + paramString2);
    if (!this.a.exists()) {}
    try
    {
      this.a.createNewFile();
      return;
    }
    catch (IOException paramContext)
    {
      InstabugSDKLogger.e(this, "Failed to create", paramContext);
    }
  }
  
  /* Error */
  private static Serializable c(String paramString)
  {
    // Byte code:
    //   0: aload_0
    //   1: iconst_2
    //   2: invokestatic 70	android/util/Base64:decode	(Ljava/lang/String;I)[B
    //   5: astore_0
    //   6: new 72	java/io/ObjectInputStream
    //   9: dup
    //   10: new 74	java/io/ByteArrayInputStream
    //   13: dup
    //   14: aload_0
    //   15: invokespecial 77	java/io/ByteArrayInputStream:<init>	([B)V
    //   18: invokespecial 80	java/io/ObjectInputStream:<init>	(Ljava/io/InputStream;)V
    //   21: astore_1
    //   22: aload_1
    //   23: invokevirtual 84	java/io/ObjectInputStream:readObject	()Ljava/lang/Object;
    //   26: checkcast 86	java/io/Serializable
    //   29: astore_0
    //   30: aload_1
    //   31: invokevirtual 89	java/io/ObjectInputStream:close	()V
    //   34: aload_0
    //   35: areturn
    //   36: astore_0
    //   37: aconst_null
    //   38: astore_0
    //   39: ldc 2
    //   41: new 27	java/lang/StringBuilder
    //   44: dup
    //   45: ldc 91
    //   47: invokespecial 92	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   50: aload_0
    //   51: invokevirtual 34	java/lang/StringBuilder:append	(Ljava/lang/Object;)Ljava/lang/StringBuilder;
    //   54: invokevirtual 41	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   57: invokestatic 96	com/instabug/library/util/InstabugSDKLogger:d	(Ljava/lang/Object;Ljava/lang/String;)V
    //   60: aload_0
    //   61: areturn
    //   62: astore_1
    //   63: goto -24 -> 39
    //   66: astore_0
    //   67: aconst_null
    //   68: astore_0
    //   69: goto -30 -> 39
    //   72: astore_1
    //   73: goto -34 -> 39
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	76	0	paramString	String
    //   21	10	1	localObjectInputStream	java.io.ObjectInputStream
    //   62	1	1	localClassNotFoundException	ClassNotFoundException
    //   72	1	1	localIOException	IOException
    // Exception table:
    //   from	to	target	type
    //   6	30	36	java/lang/ClassNotFoundException
    //   30	34	62	java/lang/ClassNotFoundException
    //   6	30	66	java/io/IOException
    //   30	34	72	java/io/IOException
  }
  
  private static String d(String paramString)
  {
    if ((paramString != null) && (!paramString.isEmpty())) {
      return paramString.substring(paramString.indexOf(":") + 1);
    }
    return null;
  }
  
  private static String e(String paramString)
  {
    if ((paramString != null) && (!paramString.isEmpty())) {
      return paramString.substring(0, paramString.indexOf(":"));
    }
    return null;
  }
  
  /* Error */
  public Serializable a(@android.support.annotation.NonNull String paramString)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 44	com/instabug/library/internal/d/a/i:a	Ljava/io/File;
    //   4: invokevirtual 48	java/io/File:exists	()Z
    //   7: ifne +11 -> 18
    //   10: aload_0
    //   11: ldc 118
    //   13: invokestatic 96	com/instabug/library/util/InstabugSDKLogger:d	(Ljava/lang/Object;Ljava/lang/String;)V
    //   16: aconst_null
    //   17: areturn
    //   18: new 120	java/io/BufferedReader
    //   21: dup
    //   22: new 122	java/io/InputStreamReader
    //   25: dup
    //   26: new 124	java/io/FileInputStream
    //   29: dup
    //   30: aload_0
    //   31: getfield 44	com/instabug/library/internal/d/a/i:a	Ljava/io/File;
    //   34: invokespecial 127	java/io/FileInputStream:<init>	(Ljava/io/File;)V
    //   37: invokespecial 128	java/io/InputStreamReader:<init>	(Ljava/io/InputStream;)V
    //   40: invokespecial 131	java/io/BufferedReader:<init>	(Ljava/io/Reader;)V
    //   43: astore_3
    //   44: aload_3
    //   45: astore_2
    //   46: aload_3
    //   47: invokevirtual 134	java/io/BufferedReader:readLine	()Ljava/lang/String;
    //   50: astore 4
    //   52: aload_3
    //   53: astore_2
    //   54: aload 4
    //   56: invokestatic 136	com/instabug/library/internal/d/a/i:e	(Ljava/lang/String;)Ljava/lang/String;
    //   59: astore 5
    //   61: aload 5
    //   63: ifnull +44 -> 107
    //   66: aload_3
    //   67: astore_2
    //   68: aload 5
    //   70: aload_1
    //   71: invokevirtual 140	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   74: ifeq +33 -> 107
    //   77: aload_3
    //   78: astore_2
    //   79: aload 4
    //   81: invokestatic 142	com/instabug/library/internal/d/a/i:d	(Ljava/lang/String;)Ljava/lang/String;
    //   84: invokestatic 144	com/instabug/library/internal/d/a/i:c	(Ljava/lang/String;)Ljava/io/Serializable;
    //   87: astore 4
    //   89: aload_3
    //   90: invokevirtual 145	java/io/BufferedReader:close	()V
    //   93: aload 4
    //   95: areturn
    //   96: astore_1
    //   97: aload_0
    //   98: ldc -109
    //   100: aload_1
    //   101: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   104: aload 4
    //   106: areturn
    //   107: aload 4
    //   109: ifnonnull -65 -> 44
    //   112: aload_3
    //   113: invokevirtual 145	java/io/BufferedReader:close	()V
    //   116: aload_0
    //   117: new 27	java/lang/StringBuilder
    //   120: dup
    //   121: ldc -107
    //   123: invokespecial 92	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   126: aload_1
    //   127: invokevirtual 37	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   130: ldc -105
    //   132: invokevirtual 37	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   135: invokevirtual 41	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   138: invokestatic 96	com/instabug/library/util/InstabugSDKLogger:d	(Ljava/lang/Object;Ljava/lang/String;)V
    //   141: aconst_null
    //   142: areturn
    //   143: astore_2
    //   144: aload_0
    //   145: ldc -109
    //   147: aload_2
    //   148: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   151: goto -35 -> 116
    //   154: astore 4
    //   156: aconst_null
    //   157: astore_3
    //   158: aload_3
    //   159: astore_2
    //   160: aload_0
    //   161: new 27	java/lang/StringBuilder
    //   164: dup
    //   165: ldc -103
    //   167: invokespecial 92	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   170: aload_1
    //   171: invokevirtual 37	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   174: invokevirtual 41	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   177: aload 4
    //   179: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   182: aload_3
    //   183: ifnull -67 -> 116
    //   186: aload_3
    //   187: invokevirtual 145	java/io/BufferedReader:close	()V
    //   190: goto -74 -> 116
    //   193: astore_2
    //   194: aload_0
    //   195: ldc -109
    //   197: aload_2
    //   198: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   201: goto -85 -> 116
    //   204: astore_1
    //   205: aconst_null
    //   206: astore_2
    //   207: aload_2
    //   208: ifnull +7 -> 215
    //   211: aload_2
    //   212: invokevirtual 145	java/io/BufferedReader:close	()V
    //   215: aload_1
    //   216: athrow
    //   217: astore_2
    //   218: aload_0
    //   219: ldc -109
    //   221: aload_2
    //   222: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   225: goto -10 -> 215
    //   228: astore_1
    //   229: goto -22 -> 207
    //   232: astore 4
    //   234: goto -76 -> 158
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	237	0	this	i
    //   0	237	1	paramString	String
    //   45	34	2	localBufferedReader1	BufferedReader
    //   143	5	2	localIOException1	IOException
    //   159	1	2	localBufferedReader2	BufferedReader
    //   193	5	2	localIOException2	IOException
    //   206	6	2	localObject1	Object
    //   217	5	2	localIOException3	IOException
    //   43	144	3	localBufferedReader3	BufferedReader
    //   50	58	4	localObject2	Object
    //   154	24	4	localIOException4	IOException
    //   232	1	4	localIOException5	IOException
    //   59	10	5	str	String
    // Exception table:
    //   from	to	target	type
    //   89	93	96	java/io/IOException
    //   112	116	143	java/io/IOException
    //   18	44	154	java/io/IOException
    //   186	190	193	java/io/IOException
    //   18	44	204	finally
    //   211	215	217	java/io/IOException
    //   46	52	228	finally
    //   54	61	228	finally
    //   68	77	228	finally
    //   79	89	228	finally
    //   160	182	228	finally
    //   46	52	232	java/io/IOException
    //   54	61	232	java/io/IOException
    //   68	77	232	java/io/IOException
    //   79	89	232	java/io/IOException
  }
  
  /* Error */
  public Serializable a(String paramString, Serializable paramSerializable)
  {
    // Byte code:
    //   0: aload_0
    //   1: aload_1
    //   2: invokevirtual 157	com/instabug/library/internal/d/a/i:a	(Ljava/lang/String;)Ljava/io/Serializable;
    //   5: astore 6
    //   7: aload 6
    //   9: ifnull +9 -> 18
    //   12: aload_0
    //   13: aload_1
    //   14: invokevirtual 159	com/instabug/library/internal/d/a/i:b	(Ljava/lang/String;)Ljava/io/Serializable;
    //   17: pop
    //   18: new 161	java/io/FileWriter
    //   21: dup
    //   22: aload_0
    //   23: getfield 44	com/instabug/library/internal/d/a/i:a	Ljava/io/File;
    //   26: iconst_1
    //   27: invokespecial 164	java/io/FileWriter:<init>	(Ljava/io/File;Z)V
    //   30: astore 4
    //   32: aload 4
    //   34: astore_3
    //   35: new 166	java/io/BufferedWriter
    //   38: dup
    //   39: aload 4
    //   41: invokespecial 169	java/io/BufferedWriter:<init>	(Ljava/io/Writer;)V
    //   44: astore 5
    //   46: aload 4
    //   48: astore_3
    //   49: aload 5
    //   51: aload_1
    //   52: invokevirtual 172	java/io/BufferedWriter:append	(Ljava/lang/CharSequence;)Ljava/io/Writer;
    //   55: ldc 104
    //   57: invokevirtual 175	java/io/Writer:append	(Ljava/lang/CharSequence;)Ljava/io/Writer;
    //   60: astore 7
    //   62: aload 4
    //   64: astore_3
    //   65: new 177	java/io/ByteArrayOutputStream
    //   68: dup
    //   69: invokespecial 178	java/io/ByteArrayOutputStream:<init>	()V
    //   72: astore 8
    //   74: aload 4
    //   76: astore_3
    //   77: new 180	java/io/ObjectOutputStream
    //   80: dup
    //   81: aload 8
    //   83: invokespecial 183	java/io/ObjectOutputStream:<init>	(Ljava/io/OutputStream;)V
    //   86: astore 9
    //   88: aload 4
    //   90: astore_3
    //   91: aload 9
    //   93: aload_2
    //   94: invokevirtual 187	java/io/ObjectOutputStream:writeObject	(Ljava/lang/Object;)V
    //   97: aload 4
    //   99: astore_3
    //   100: aload 9
    //   102: invokevirtual 188	java/io/ObjectOutputStream:close	()V
    //   105: aload 4
    //   107: astore_3
    //   108: aload 7
    //   110: aload 8
    //   112: invokevirtual 192	java/io/ByteArrayOutputStream:toByteArray	()[B
    //   115: iconst_2
    //   116: invokestatic 196	android/util/Base64:encodeToString	([BI)Ljava/lang/String;
    //   119: invokevirtual 175	java/io/Writer:append	(Ljava/lang/CharSequence;)Ljava/io/Writer;
    //   122: ldc -58
    //   124: invokevirtual 175	java/io/Writer:append	(Ljava/lang/CharSequence;)Ljava/io/Writer;
    //   127: pop
    //   128: aload 4
    //   130: astore_3
    //   131: aload 5
    //   133: invokevirtual 199	java/io/BufferedWriter:close	()V
    //   136: aload 4
    //   138: invokevirtual 200	java/io/FileWriter:close	()V
    //   141: aload 6
    //   143: ifnull +6 -> 149
    //   146: aload 6
    //   148: astore_2
    //   149: aload_2
    //   150: areturn
    //   151: astore_1
    //   152: aload_0
    //   153: ldc -54
    //   155: aload_1
    //   156: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   159: goto -18 -> 141
    //   162: astore 5
    //   164: aconst_null
    //   165: astore 4
    //   167: aload 4
    //   169: astore_3
    //   170: aload_0
    //   171: new 27	java/lang/StringBuilder
    //   174: dup
    //   175: ldc -52
    //   177: invokespecial 92	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   180: aload_1
    //   181: invokevirtual 37	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   184: invokevirtual 41	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   187: aload 5
    //   189: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   192: aload 4
    //   194: ifnull -53 -> 141
    //   197: aload 4
    //   199: invokevirtual 200	java/io/FileWriter:close	()V
    //   202: goto -61 -> 141
    //   205: astore_1
    //   206: aload_0
    //   207: ldc -54
    //   209: aload_1
    //   210: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   213: goto -72 -> 141
    //   216: astore_1
    //   217: aconst_null
    //   218: astore_3
    //   219: aload_3
    //   220: ifnull +7 -> 227
    //   223: aload_3
    //   224: invokevirtual 200	java/io/FileWriter:close	()V
    //   227: aload_1
    //   228: athrow
    //   229: astore_2
    //   230: aload_0
    //   231: ldc -54
    //   233: aload_2
    //   234: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   237: goto -10 -> 227
    //   240: astore_1
    //   241: goto -22 -> 219
    //   244: astore 5
    //   246: goto -79 -> 167
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	249	0	this	i
    //   0	249	1	paramString	String
    //   0	249	2	paramSerializable	Serializable
    //   34	190	3	localFileWriter1	FileWriter
    //   30	168	4	localFileWriter2	FileWriter
    //   44	88	5	localBufferedWriter	BufferedWriter
    //   162	26	5	localIOException1	IOException
    //   244	1	5	localIOException2	IOException
    //   5	142	6	localSerializable	Serializable
    //   60	49	7	localWriter	java.io.Writer
    //   72	39	8	localByteArrayOutputStream	java.io.ByteArrayOutputStream
    //   86	15	9	localObjectOutputStream	java.io.ObjectOutputStream
    // Exception table:
    //   from	to	target	type
    //   136	141	151	java/io/IOException
    //   18	32	162	java/io/IOException
    //   197	202	205	java/io/IOException
    //   18	32	216	finally
    //   223	227	229	java/io/IOException
    //   35	46	240	finally
    //   49	62	240	finally
    //   65	74	240	finally
    //   77	88	240	finally
    //   91	97	240	finally
    //   100	105	240	finally
    //   108	128	240	finally
    //   131	136	240	finally
    //   170	192	240	finally
    //   35	46	244	java/io/IOException
    //   49	62	244	java/io/IOException
    //   65	74	244	java/io/IOException
    //   77	88	244	java/io/IOException
    //   91	97	244	java/io/IOException
    //   100	105	244	java/io/IOException
    //   108	128	244	java/io/IOException
    //   131	136	244	java/io/IOException
  }
  
  public void a()
  {
    if (!this.a.exists())
    {
      InstabugSDKLogger.d(this, "Cache file doesn't exist");
      return;
    }
    this.a.delete();
  }
  
  public Serializable b(String paramString)
  {
    Object localObject1 = null;
    Object localObject2 = null;
    if (!this.a.exists())
    {
      InstabugSDKLogger.d(this, "Cache file doesn't exist");
      paramString = (String)localObject2;
      return paramString;
    }
    File localFile = new File(this.b + "/cache.tmp");
    localObject2 = localObject1;
    label196:
    label221:
    label230:
    for (;;)
    {
      try
      {
        localBufferedReader = new BufferedReader(new FileReader(this.a));
        localObject2 = localObject1;
        localBufferedWriter = new BufferedWriter(new FileWriter(localFile));
        localObject1 = null;
      }
      catch (IOException paramString)
      {
        try
        {
          BufferedReader localBufferedReader;
          str = localBufferedReader.readLine();
          localObject2 = e(str);
          if (localObject2 == null) {
            break label221;
          }
          if (!((String)localObject2).equals(paramString)) {
            break label196;
          }
          localObject2 = c(d(str));
          localObject1 = localObject2;
          if (str != null) {
            break label230;
          }
          localObject2 = localObject1;
          localBufferedReader.close();
          localObject2 = localObject1;
          localBufferedWriter.flush();
          localObject2 = localObject1;
          localBufferedWriter.close();
          paramString = (String)localObject1;
          localObject2 = localObject1;
          if (!this.a.delete()) {
            break;
          }
          localObject2 = localObject1;
          localFile.renameTo(this.a);
          return (Serializable)localObject1;
        }
        catch (IOException paramString)
        {
          BufferedWriter localBufferedWriter;
          String str;
          localObject2 = localObject1;
          continue;
        }
        paramString = paramString;
        paramString.printStackTrace();
        return (Serializable)localObject2;
      }
      localBufferedWriter.write(str + "\n");
    }
  }
  
  /* Error */
  public java.util.List<Serializable> b()
  {
    // Byte code:
    //   0: new 233	java/util/ArrayList
    //   3: dup
    //   4: invokespecial 234	java/util/ArrayList:<init>	()V
    //   7: astore 4
    //   9: aload_0
    //   10: getfield 44	com/instabug/library/internal/d/a/i:a	Ljava/io/File;
    //   13: invokevirtual 48	java/io/File:exists	()Z
    //   16: ifne +12 -> 28
    //   19: aload_0
    //   20: ldc 118
    //   22: invokestatic 96	com/instabug/library/util/InstabugSDKLogger:d	(Ljava/lang/Object;Ljava/lang/String;)V
    //   25: aload 4
    //   27: areturn
    //   28: aconst_null
    //   29: astore_1
    //   30: new 120	java/io/BufferedReader
    //   33: dup
    //   34: new 122	java/io/InputStreamReader
    //   37: dup
    //   38: new 124	java/io/FileInputStream
    //   41: dup
    //   42: aload_0
    //   43: getfield 44	com/instabug/library/internal/d/a/i:a	Ljava/io/File;
    //   46: invokespecial 127	java/io/FileInputStream:<init>	(Ljava/io/File;)V
    //   49: invokespecial 128	java/io/InputStreamReader:<init>	(Ljava/io/InputStream;)V
    //   52: invokespecial 131	java/io/BufferedReader:<init>	(Ljava/io/Reader;)V
    //   55: astore_2
    //   56: aload_2
    //   57: astore_1
    //   58: aload_2
    //   59: invokevirtual 134	java/io/BufferedReader:readLine	()Ljava/lang/String;
    //   62: astore_3
    //   63: aload_2
    //   64: astore_1
    //   65: aload_3
    //   66: invokestatic 142	com/instabug/library/internal/d/a/i:d	(Ljava/lang/String;)Ljava/lang/String;
    //   69: astore 5
    //   71: aload 5
    //   73: ifnull +18 -> 91
    //   76: aload_2
    //   77: astore_1
    //   78: aload 4
    //   80: aload 5
    //   82: invokestatic 144	com/instabug/library/internal/d/a/i:c	(Ljava/lang/String;)Ljava/io/Serializable;
    //   85: invokeinterface 239 2 0
    //   90: pop
    //   91: aload_3
    //   92: ifnonnull -36 -> 56
    //   95: aload_2
    //   96: invokevirtual 145	java/io/BufferedReader:close	()V
    //   99: aload 4
    //   101: areturn
    //   102: astore_1
    //   103: aload_0
    //   104: ldc -109
    //   106: aload_1
    //   107: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   110: aload 4
    //   112: areturn
    //   113: astore_3
    //   114: aconst_null
    //   115: astore_2
    //   116: aload_2
    //   117: astore_1
    //   118: aload_0
    //   119: ldc -15
    //   121: aload_3
    //   122: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   125: aload_2
    //   126: ifnull -101 -> 25
    //   129: aload_2
    //   130: invokevirtual 145	java/io/BufferedReader:close	()V
    //   133: aload 4
    //   135: areturn
    //   136: astore_1
    //   137: aload_0
    //   138: ldc -109
    //   140: aload_1
    //   141: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   144: aload 4
    //   146: areturn
    //   147: astore_3
    //   148: aload_1
    //   149: astore_2
    //   150: aload_3
    //   151: astore_1
    //   152: aload_2
    //   153: ifnull +7 -> 160
    //   156: aload_2
    //   157: invokevirtual 145	java/io/BufferedReader:close	()V
    //   160: aload_1
    //   161: athrow
    //   162: astore_2
    //   163: aload_0
    //   164: ldc -109
    //   166: aload_2
    //   167: invokestatic 59	com/instabug/library/util/InstabugSDKLogger:e	(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   170: goto -10 -> 160
    //   173: astore_3
    //   174: aload_1
    //   175: astore_2
    //   176: aload_3
    //   177: astore_1
    //   178: goto -26 -> 152
    //   181: astore_3
    //   182: goto -66 -> 116
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	185	0	this	i
    //   29	49	1	localObject1	Object
    //   102	5	1	localIOException1	IOException
    //   117	1	1	localObject2	Object
    //   136	13	1	localIOException2	IOException
    //   151	27	1	localObject3	Object
    //   55	102	2	localObject4	Object
    //   162	5	2	localIOException3	IOException
    //   175	1	2	localObject5	Object
    //   62	30	3	str1	String
    //   113	9	3	localIOException4	IOException
    //   147	4	3	localObject6	Object
    //   173	4	3	localObject7	Object
    //   181	1	3	localIOException5	IOException
    //   7	138	4	localArrayList	java.util.ArrayList
    //   69	12	5	str2	String
    // Exception table:
    //   from	to	target	type
    //   95	99	102	java/io/IOException
    //   30	56	113	java/io/IOException
    //   129	133	136	java/io/IOException
    //   30	56	147	finally
    //   156	160	162	java/io/IOException
    //   58	63	173	finally
    //   65	71	173	finally
    //   78	91	173	finally
    //   118	125	173	finally
    //   58	63	181	java/io/IOException
    //   65	71	181	java/io/IOException
    //   78	91	181	java/io/IOException
  }
  
  public long c()
  {
    if (!this.a.exists())
    {
      InstabugSDKLogger.d(this, "Cache file doesn't exist");
      return -1L;
    }
    return this.a.getTotalSpace();
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/instabug/library/internal/d/a/i.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */