123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- .class public final Lokhttp3/internal/cache/DiskLruCache$Snapshot;
- .super Ljava/lang/Object;
- .source ""
- # interfaces
- .implements Ljava/io/Closeable;
- # annotations
- .annotation system Ldalvik/annotation/EnclosingClass;
- value = Lokhttp3/internal/cache/DiskLruCache;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x11
- name = "Snapshot"
- .end annotation
- # instance fields
- .field private final key:Ljava/lang/String;
- .field private final lengths:[J
- .field private final sequenceNumber:J
- .field private final sources:[Lokio/Source;
- .field final synthetic this$0:Lokhttp3/internal/cache/DiskLruCache;
- # direct methods
- .method constructor <init>(Lokhttp3/internal/cache/DiskLruCache;Ljava/lang/String;J[Lokio/Source;[J)V
- .locals 0
- iput-object p1, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- iput-object p2, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->key:Ljava/lang/String;
- iput-wide p3, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->sequenceNumber:J
- iput-object p5, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->sources:[Lokio/Source;
- iput-object p6, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->lengths:[J
- return-void
- .end method
- .method static synthetic access$000(Lokhttp3/internal/cache/DiskLruCache$Snapshot;)Ljava/lang/String;
- .locals 0
- iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->key:Ljava/lang/String;
- return-object p0
- .end method
- # virtual methods
- .method public close()V
- .locals 4
- iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->sources:[Lokio/Source;
- array-length v1, v0
- const/4 v2, 0x0
- :goto_0
- if-ge v2, v1, :cond_0
- aget-object v3, v0, v2
- invoke-static {v3}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
- add-int/lit8 v2, v2, 0x1
- goto :goto_0
- :cond_0
- return-void
- .end method
- .method public edit()Lokhttp3/internal/cache/DiskLruCache$Editor;
- .locals 4
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->this$0:Lokhttp3/internal/cache/DiskLruCache;
- iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->key:Ljava/lang/String;
- iget-wide v2, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->sequenceNumber:J
- invoke-virtual {v0, v1, v2, v3}, Lokhttp3/internal/cache/DiskLruCache;->edit(Ljava/lang/String;J)Lokhttp3/internal/cache/DiskLruCache$Editor;
- move-result-object v0
- return-object v0
- .end method
- .method public getLength(I)J
- .locals 3
- iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->lengths:[J
- aget-wide v1, v0, p1
- return-wide v1
- .end method
- .method public getSource(I)Lokio/Source;
- .locals 1
- iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->sources:[Lokio/Source;
- aget-object p1, v0, p1
- return-object p1
- .end method
- .method public key()Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->key:Ljava/lang/String;
- return-object v0
- .end method
|