
com.squareup.okhttp.Cache.class Maven / Gradle / Ivy
???? 3m
? ? ? ?
?
?
?
?
? ? ?
?
Q ? ?
? ? ? ?
? ?
? ?
? ?
?
? ? ? ?
? ?
?
? ?
?
?
? ?
? ?
? ?
?
?
(
?
,
?
?
?
?
?
?
4 ?
?
?
?
?
?
? !"#"$% ???
&'
G ?(
G)
G*+
G,
-.
O/0 CacheResponseBody InnerClasses Entry CacheRequestImpl VERSION I
ConstantValue ENTRY_METADATA
ENTRY_BODY ENTRY_COUNT
internalCache ,Lcom/squareup/okhttp/internal/InternalCache; cache +Lcom/squareup/okhttp/internal/DiskLruCache; writeSuccessCount writeAbortCount networkCount hitCount requestCount (Ljava/io/File;J)V Code LineNumberTable LocalVariableTable this Lcom/squareup/okhttp/Cache; directory Ljava/io/File; maxSize J >(Ljava/io/File;JLcom/squareup/okhttp/internal/io/FileSystem;)V
fileSystem ,Lcom/squareup/okhttp/internal/io/FileSystem; urlToKey 1(Lcom/squareup/okhttp/Request;)Ljava/lang/String; request Lcom/squareup/okhttp/Request; get =(Lcom/squareup/okhttp/Request;)Lcom/squareup/okhttp/Response; e Ljava/io/IOException; key Ljava/lang/String; snapshot1 Snapshot 4Lcom/squareup/okhttp/internal/DiskLruCache$Snapshot; entry !Lcom/squareup/okhttp/Cache$Entry; response Lcom/squareup/okhttp/Response;
StackMapTable21 ?3 ? ?4 put P(Lcom/squareup/okhttp/Response;)Lcom/squareup/okhttp/internal/http/CacheRequest;
requestMethod editor5 Editor 2Lcom/squareup/okhttp/internal/DiskLruCache$Editor;5
Exceptions remove (Lcom/squareup/okhttp/Request;)V update ?(Lcom/squareup/okhttp/Response;Lcom/squareup/okhttp/Response;)V cached network abortQuietly 5(Lcom/squareup/okhttp/internal/DiskLruCache$Editor;)V
initialize ()V delete evictAll urls ()Ljava/util/Iterator; Signature *()Ljava/util/Iterator; getWriteAbortCount ()I getWriteSuccessCount getSize ()J
getMaxSize flush close getDirectory ()Ljava/io/File; isClosed ()Z
trackResponse 4(Lcom/squareup/okhttp/internal/http/CacheStrategy;)V
cacheStrategy 1Lcom/squareup/okhttp/internal/http/CacheStrategy; trackConditionalCacheHit getNetworkCount getHitCount getRequestCount readInt (Lokio/BufferedSource;)I result line !Ljava/lang/NumberFormatException; source Lokio/BufferedSource;6.
access$000 k(Lcom/squareup/okhttp/Cache;Lcom/squareup/okhttp/Response;)Lcom/squareup/okhttp/internal/http/CacheRequest; x0 x1
access$100 ;(Lcom/squareup/okhttp/Cache;Lcom/squareup/okhttp/Request;)V
access$200 Z(Lcom/squareup/okhttp/Cache;Lcom/squareup/okhttp/Response;Lcom/squareup/okhttp/Response;)V x2
access$300 (Lcom/squareup/okhttp/Cache;)V
access$400 O(Lcom/squareup/okhttp/Cache;Lcom/squareup/okhttp/internal/http/CacheStrategy;)V
access$600 H(Lcom/squareup/okhttp/Cache;)Lcom/squareup/okhttp/internal/DiskLruCache;
access$808 (Lcom/squareup/okhttp/Cache;)I
access$908 access$1000
SourceFile
Cache.java ? ? d W c W a b ? ? ? ? ? ? ? ? ? ?78 u h s h ? com/squareup/okhttp/Cache$1 h ? _ ` com/squareup/okhttp/Cache9:;3<=>?@ v w zA java/io/IOException com/squareup/okhttp/Cache$EntryBC hDEF ?GHI4JK xLM=NOP GET2QRSTU hVWXY ? *com/squareup/okhttp/Cache$CacheRequestImpl hZ ? ? ?P +com/squareup/okhttp/Cache$CacheResponseBody[\W]^ ?_ ? ? ? ? ? ? ? com/squareup/okhttp/Cache$2` ? ? ? ? ? ? ? ? ? ? ? g Wab y e Wc ? f W6d ?e= java/lang/Integerf ? java/lang/StringBuilder expected an int but was "ghgi "j= hk java/lang/NumberFormatExceptionl= java/lang/Object 2com/squareup/okhttp/internal/DiskLruCache$Snapshot java/lang/String com/squareup/okhttp/Request com/squareup/okhttp/Response 0com/squareup/okhttp/internal/DiskLruCache$Editor okio/BufferedSource *com/squareup/okhttp/internal/io/FileSystem SYSTEM )com/squareup/okhttp/internal/DiskLruCache create j(Lcom/squareup/okhttp/internal/io/FileSystem;Ljava/io/File;IIJ)Lcom/squareup/okhttp/internal/DiskLruCache; urlString ()Ljava/lang/String; !com/squareup/okhttp/internal/Util md5Hex &(Ljava/lang/String;)Ljava/lang/String; H(Ljava/lang/String;)Lcom/squareup/okhttp/internal/DiskLruCache$Snapshot; getSource (I)Lokio/Source; (Lokio/Source;)V closeQuietly (Ljava/io/Closeable;)V q(Lcom/squareup/okhttp/Request;Lcom/squareup/okhttp/internal/DiskLruCache$Snapshot;)Lcom/squareup/okhttp/Response; matches >(Lcom/squareup/okhttp/Request;Lcom/squareup/okhttp/Response;)Z body $()Lcom/squareup/okhttp/ResponseBody; ()Lcom/squareup/okhttp/Request; method ,com/squareup/okhttp/internal/http/HttpMethod invalidatesCache (Ljava/lang/String;)Z equals (Ljava/lang/Object;)Z +com/squareup/okhttp/internal/http/OkHeaders
hasVaryAll !(Lcom/squareup/okhttp/Response;)Z !(Lcom/squareup/okhttp/Response;)V edit F(Ljava/lang/String;)Lcom/squareup/okhttp/internal/DiskLruCache$Editor; writeTo P(Lcom/squareup/okhttp/Cache;Lcom/squareup/okhttp/internal/DiskLruCache$Editor;)V
access$500 c(Lcom/squareup/okhttp/Cache$CacheResponseBody;)Lcom/squareup/okhttp/internal/DiskLruCache$Snapshot; 4()Lcom/squareup/okhttp/internal/DiskLruCache$Editor; commit abort size /com/squareup/okhttp/internal/http/CacheStrategy networkRequest
cacheResponse readDecimalLong readUtf8LineStrict isEmpty append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (J)Ljava/lang/StringBuilder; toString (Ljava/lang/String;)V
getMessage 1 Q V W X Y W X Z [ W X \ ] W X ^ _ ` a b c W d W e W f W g W # h i j L
*+ ?
? ? k
? ? l
m n
o p
q r h s j s *? *?
Y*? ? *+ ? ? ? k ? ? ? ? l * m n o p q r t u
v w j 2 *? ? ? k ? l x y z { j c U+? M*? ,? N-? ?? :?? Y-? ? :? :-? ?+-? :+? ?
? ? ?? ) , k F ? ? ? ? ? ? ? ? ) ? , ? . ? 2 ? 4 ? = ? H ? P ? R ? l f
| } . | } U m n U x y P ~ ? ? : ? ? ) ? ? 4 ! ? ? = ? ? ? 4 ? ? ?? ? ? ? ?? ?P ?? ?? ? ? ? j a u+? ? M+? ? ? !? *+? ? ? N?,"? #? ?+? $? ?? Y+? %N:*? +? ? ? &:? ?-? '? (Y*? )?:*? *? C Y k Z j k k R ? ? ? ? ? ! ? # ? , ? . ? 5 ? 7 ? @ ? C ? S ? X ? Z ? ` ? k ? m ? s ? l > m | } u m n u ? ? m ? @ 5 ? ? C 2 ? ? ? &