
okhttp3.internal.cache2.Relay.class Maven / Gradle / Ivy
???? 3 ?
4 ?
? ? ? ? ? ? ? ? ? ?
? ?
?
? ?????????
? ?
?
?
? ?
? ?
?
? ? ? ?
?
?
?
?
?
? ?
(
?
?
? ?
? ? ? ?
/ ? ?
? ? ? ? RelaySource InnerClasses SOURCE_UPSTREAM I
ConstantValue SOURCE_FILE PREFIX_CLEAN Lokio/ByteString; PREFIX_DIRTY FILE_HEADER_SIZE J file Ljava/io/RandomAccessFile; upstreamReader Ljava/lang/Thread; upstream
Lokio/Source; upstreamBuffer
Lokio/Buffer; upstreamPos complete Z metadata buffer
bufferMaxSize sourceCount =(Ljava/io/RandomAccessFile;Lokio/Source;JLokio/ByteString;J)V Code LineNumberTable LocalVariableTable this Lokhttp3/internal/cache2/Relay;
StackMapTable ? ? ? ? edit N(Ljava/io/File;Lokio/Source;Lokio/ByteString;J)Lokhttp3/internal/cache2/Relay; Ljava/io/File; randomAccessFile result
Exceptions read /(Ljava/io/File;)Lokhttp3/internal/cache2/Relay; fileOperator &Lokhttp3/internal/cache2/FileOperator; header prefix upstreamSize metadataSize metadataBuffer ? ? ? writeHeader (Lokio/ByteString;JJ)V
writeMetadata (J)V commit ? ? isClosed ()Z ()Lokio/ByteString; newSource ()Lokio/Source; ()V
SourceFile
Relay.java Q | okio/Buffer H I N I B C F G K L J A M > O A java/io/RandomAccessFile rw Q ? okhttp3/internal/cache2/Relay Q R ? r ? > o p $okhttp3/internal/cache2/FileOperator ? ? Q ? c ? = > ? ? ? ? ? ? ? java/io/IOException unreadable cache file Q ? ? ? ? x ? ? ? ? ? ? "java/lang/IllegalArgumentException ? ? q r ? ? ? ? ? ? P 8 )okhttp3/internal/cache2/Relay$RelaySource Q ? OkHttp cache v1
? ? OkHttp DIRTY :(
java/lang/Object okio/Source okio/ByteString java/io/File java/lang/Throwable #(Ljava/io/File;Ljava/lang/String;)V setLength
getChannel !()Ljava/nio/channels/FileChannel; "(Ljava/nio/channels/FileChannel;)V (JLokio/Buffer;J)V size ()I readByteString (J)Lokio/ByteString; equals (Ljava/lang/Object;)Z (Ljava/lang/String;)V readLong ()J write (Lokio/ByteString;)Lokio/Buffer; writeLong (J)Lokio/Buffer; java/nio/channels/FileChannel force (Z)V okhttp3/internal/Util closeQuietly (Ljava/io/Closeable;)V "(Lokhttp3/internal/cache2/Relay;)V
encodeUtf8 %(Ljava/lang/String;)Lokio/ByteString; 0 4 7 8 9 : ; 8 9 <