mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
926 lines
22 KiB
Smali
926 lines
22 KiB
Smali
.class public abstract Lcom/google/common/io/ByteSource;
|
|
.super Ljava/lang/Object;
|
|
.source "ByteSource.java"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lcom/google/common/io/ElementTypesAreNonnullByDefault;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/io/ByteSource$ConcatenatedByteSource;,
|
|
Lcom/google/common/io/ByteSource$EmptyByteSource;,
|
|
Lcom/google/common/io/ByteSource$ByteArrayByteSource;,
|
|
Lcom/google/common/io/ByteSource$SlicedByteSource;,
|
|
Lcom/google/common/io/ByteSource$AsCharSource;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method protected constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 81
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static concat(Ljava/lang/Iterable;)Lcom/google/common/io/ByteSource;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Iterable<",
|
|
"+",
|
|
"Lcom/google/common/io/ByteSource;",
|
|
">;)",
|
|
"Lcom/google/common/io/ByteSource;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 388
|
|
new-instance v0, Lcom/google/common/io/ByteSource$ConcatenatedByteSource;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/io/ByteSource$ConcatenatedByteSource;-><init>(Ljava/lang/Iterable;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static concat(Ljava/util/Iterator;)Lcom/google/common/io/ByteSource;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Iterator<",
|
|
"+",
|
|
"Lcom/google/common/io/ByteSource;",
|
|
">;)",
|
|
"Lcom/google/common/io/ByteSource;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 410
|
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableList;->copyOf(Ljava/util/Iterator;)Lcom/google/common/collect/ImmutableList;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/google/common/io/ByteSource;->concat(Ljava/lang/Iterable;)Lcom/google/common/io/ByteSource;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static varargs concat([Lcom/google/common/io/ByteSource;)Lcom/google/common/io/ByteSource;
|
|
.locals 0
|
|
|
|
.line 426
|
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableList;->copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/google/common/io/ByteSource;->concat(Ljava/lang/Iterable;)Lcom/google/common/io/ByteSource;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private countBySkipping(Ljava/io/InputStream;)J
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
move-wide v2, v0
|
|
|
|
:goto_0
|
|
const-wide/32 v4, 0x7fffffff
|
|
|
|
.line 236
|
|
invoke-static {p1, v4, v5}, Lcom/google/common/io/ByteStreams;->skipUpTo(Ljava/io/InputStream;J)J
|
|
|
|
move-result-wide v4
|
|
|
|
cmp-long p0, v4, v0
|
|
|
|
if-lez p0, :cond_0
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-wide v2
|
|
.end method
|
|
|
|
.method public static empty()Lcom/google/common/io/ByteSource;
|
|
.locals 1
|
|
|
|
.line 450
|
|
sget-object v0, Lcom/google/common/io/ByteSource$EmptyByteSource;->INSTANCE:Lcom/google/common/io/ByteSource$EmptyByteSource;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static wrap([B)Lcom/google/common/io/ByteSource;
|
|
.locals 1
|
|
|
|
.line 441
|
|
new-instance v0, Lcom/google/common/io/ByteSource$ByteArrayByteSource;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/io/ByteSource$ByteArrayByteSource;-><init>([B)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public asCharSource(Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource;
|
|
.locals 1
|
|
|
|
.line 93
|
|
new-instance v0, Lcom/google/common/io/ByteSource$AsCharSource;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/io/ByteSource$AsCharSource;-><init>(Lcom/google/common/io/ByteSource;Ljava/nio/charset/Charset;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public contentEquals(Lcom/google/common/io/ByteSource;)Z
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 351
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 353
|
|
invoke-static {}, Lcom/google/common/io/ByteStreams;->createBuffer()[B
|
|
|
|
move-result-object v0
|
|
|
|
.line 354
|
|
invoke-static {}, Lcom/google/common/io/ByteStreams;->createBuffer()[B
|
|
|
|
move-result-object v1
|
|
|
|
.line 356
|
|
invoke-static {}, Lcom/google/common/io/Closer;->create()Lcom/google/common/io/Closer;
|
|
|
|
move-result-object v2
|
|
|
|
.line 358
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v2, p0}, Lcom/google/common/io/Closer;->register(Ljava/io/Closeable;)Ljava/io/Closeable;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/io/InputStream;
|
|
|
|
.line 359
|
|
invoke-virtual {p1}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v2, p1}, Lcom/google/common/io/Closer;->register(Ljava/io/Closeable;)Ljava/io/Closeable;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/io/InputStream;
|
|
|
|
.line 361
|
|
:cond_0
|
|
array-length v3, v0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-static {p0, v0, v4, v3}, Lcom/google/common/io/ByteStreams;->read(Ljava/io/InputStream;[BII)I
|
|
|
|
move-result v3
|
|
|
|
.line 362
|
|
array-length v5, v1
|
|
|
|
invoke-static {p1, v1, v4, v5}, Lcom/google/common/io/ByteStreams;->read(Ljava/io/InputStream;[BII)I
|
|
|
|
move-result v5
|
|
|
|
if-ne v3, v5, :cond_2
|
|
|
|
.line 363
|
|
invoke-static {v0, v1}, Ljava/util/Arrays;->equals([B[B)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 365
|
|
:cond_1
|
|
array-length v4, v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eq v3, v4, :cond_0
|
|
|
|
.line 372
|
|
invoke-virtual {v2}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_2
|
|
:goto_0
|
|
invoke-virtual {v2}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
return v4
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 370
|
|
:try_start_1
|
|
invoke-virtual {v2, p0}, Lcom/google/common/io/Closer;->rethrow(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
.line 372
|
|
invoke-virtual {v2}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
.line 373
|
|
throw p0
|
|
.end method
|
|
|
|
.method public copyTo(Lcom/google/common/io/ByteSink;)J
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 274
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 276
|
|
invoke-static {}, Lcom/google/common/io/Closer;->create()Lcom/google/common/io/Closer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 278
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->register(Ljava/io/Closeable;)Ljava/io/Closeable;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/io/InputStream;
|
|
|
|
.line 279
|
|
invoke-virtual {p1}, Lcom/google/common/io/ByteSink;->openStream()Ljava/io/OutputStream;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/common/io/Closer;->register(Ljava/io/Closeable;)Ljava/io/Closeable;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/io/OutputStream;
|
|
|
|
.line 280
|
|
invoke-static {p0, p1}, Lcom/google/common/io/ByteStreams;->copy(Ljava/io/InputStream;Ljava/io/OutputStream;)J
|
|
|
|
move-result-wide p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 284
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
return-wide p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 282
|
|
:try_start_1
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->rethrow(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
.line 284
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
.line 285
|
|
throw p0
|
|
.end method
|
|
|
|
.method public copyTo(Ljava/io/OutputStream;)J
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 252
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 254
|
|
invoke-static {}, Lcom/google/common/io/Closer;->create()Lcom/google/common/io/Closer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 256
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->register(Ljava/io/Closeable;)Ljava/io/Closeable;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/io/InputStream;
|
|
|
|
.line 257
|
|
invoke-static {p0, p1}, Lcom/google/common/io/ByteStreams;->copy(Ljava/io/InputStream;Ljava/io/OutputStream;)J
|
|
|
|
move-result-wide p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 261
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
return-wide p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 259
|
|
:try_start_1
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->rethrow(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
.line 261
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
.line 262
|
|
throw p0
|
|
.end method
|
|
|
|
.method public hash(Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 339
|
|
invoke-interface {p1}, Lcom/google/common/hash/HashFunction;->newHasher()Lcom/google/common/hash/Hasher;
|
|
|
|
move-result-object p1
|
|
|
|
.line 340
|
|
invoke-static {p1}, Lcom/google/common/hash/Funnels;->asOutputStream(Lcom/google/common/hash/PrimitiveSink;)Ljava/io/OutputStream;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/common/io/ByteSource;->copyTo(Ljava/io/OutputStream;)J
|
|
|
|
.line 341
|
|
invoke-interface {p1}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public isEmpty()Z
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 152
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->sizeIfKnown()Lcom/google/common/base/Optional;
|
|
|
|
move-result-object v0
|
|
|
|
.line 153
|
|
invoke-virtual {v0}, Lcom/google/common/base/Optional;->isPresent()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 154
|
|
invoke-virtual {v0}, Lcom/google/common/base/Optional;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/lang/Long;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long p0, v0, v4
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v3
|
|
|
|
:goto_0
|
|
return v2
|
|
|
|
.line 156
|
|
:cond_1
|
|
invoke-static {}, Lcom/google/common/io/Closer;->create()Lcom/google/common/io/Closer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 158
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->register(Ljava/io/Closeable;)Ljava/io/Closeable;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/io/InputStream;
|
|
|
|
.line 159
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-ne p0, v1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v2, v3
|
|
|
|
.line 163
|
|
:goto_1
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
return v2
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 161
|
|
:try_start_1
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->rethrow(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
.line 163
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
.line 164
|
|
throw p0
|
|
.end method
|
|
|
|
.method public openBufferedStream()Ljava/io/InputStream;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 119
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object p0
|
|
|
|
.line 120
|
|
instance-of v0, p0, Ljava/io/BufferedInputStream;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 121
|
|
check-cast p0, Ljava/io/BufferedInputStream;
|
|
|
|
goto :goto_0
|
|
|
|
.line 122
|
|
:cond_0
|
|
new-instance v0, Ljava/io/BufferedInputStream;
|
|
|
|
invoke-direct {v0, p0}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V
|
|
|
|
move-object p0, v0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public abstract openStream()Ljava/io/InputStream;
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public read(Lcom/google/common/io/ByteProcessor;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/google/common/io/ByteProcessor<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 320
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 322
|
|
invoke-static {}, Lcom/google/common/io/Closer;->create()Lcom/google/common/io/Closer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 324
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->register(Ljava/io/Closeable;)Ljava/io/Closeable;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/io/InputStream;
|
|
|
|
.line 325
|
|
invoke-static {p0, p1}, Lcom/google/common/io/ByteStreams;->readBytes(Ljava/io/InputStream;Lcom/google/common/io/ByteProcessor;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 329
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 327
|
|
:try_start_1
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->rethrow(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
.line 329
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
.line 330
|
|
throw p0
|
|
.end method
|
|
|
|
.method public read()[B
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 294
|
|
invoke-static {}, Lcom/google/common/io/Closer;->create()Lcom/google/common/io/Closer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 296
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/io/Closer;->register(Ljava/io/Closeable;)Ljava/io/Closeable;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/io/InputStream;
|
|
|
|
.line 297
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->sizeIfKnown()Lcom/google/common/base/Optional;
|
|
|
|
move-result-object p0
|
|
|
|
.line 298
|
|
invoke-virtual {p0}, Lcom/google/common/base/Optional;->isPresent()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 299
|
|
invoke-virtual {p0}, Lcom/google/common/base/Optional;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/lang/Long;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-static {v1, v2, v3}, Lcom/google/common/io/ByteStreams;->toByteArray(Ljava/io/InputStream;J)[B
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 300
|
|
:cond_0
|
|
invoke-static {v1}, Lcom/google/common/io/ByteStreams;->toByteArray(Ljava/io/InputStream;)[B
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 304
|
|
:goto_0
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 302
|
|
:try_start_1
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->rethrow(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
.line 304
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
.line 305
|
|
throw p0
|
|
.end method
|
|
|
|
.method public size()J
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 206
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->sizeIfKnown()Lcom/google/common/base/Optional;
|
|
|
|
move-result-object v0
|
|
|
|
.line 207
|
|
invoke-virtual {v0}, Lcom/google/common/base/Optional;->isPresent()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 208
|
|
invoke-virtual {v0}, Lcom/google/common/base/Optional;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/lang/Long;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
|
|
.line 211
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/common/io/Closer;->create()Lcom/google/common/io/Closer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 213
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/io/Closer;->register(Ljava/io/Closeable;)Ljava/io/Closeable;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/io/InputStream;
|
|
|
|
.line 214
|
|
invoke-direct {p0, v1}, Lcom/google/common/io/ByteSource;->countBySkipping(Ljava/io/InputStream;)J
|
|
|
|
move-result-wide v1
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 218
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
return-wide v1
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
.line 219
|
|
throw p0
|
|
|
|
.line 218
|
|
:catch_0
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
.line 221
|
|
invoke-static {}, Lcom/google/common/io/Closer;->create()Lcom/google/common/io/Closer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 223
|
|
:try_start_1
|
|
invoke-virtual {p0}, Lcom/google/common/io/ByteSource;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->register(Ljava/io/Closeable;)Ljava/io/Closeable;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/io/InputStream;
|
|
|
|
.line 224
|
|
invoke-static {p0}, Lcom/google/common/io/ByteStreams;->exhaust(Ljava/io/InputStream;)J
|
|
|
|
move-result-wide v1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
.line 228
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
return-wide v1
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
.line 226
|
|
:try_start_2
|
|
invoke-virtual {v0, p0}, Lcom/google/common/io/Closer;->rethrow(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_2
|
|
|
|
:catchall_2
|
|
move-exception p0
|
|
|
|
.line 228
|
|
invoke-virtual {v0}, Lcom/google/common/io/Closer;->close()V
|
|
|
|
.line 229
|
|
throw p0
|
|
.end method
|
|
|
|
.method public sizeIfKnown()Lcom/google/common/base/Optional;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/base/Optional<",
|
|
"Ljava/lang/Long;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 183
|
|
invoke-static {}, Lcom/google/common/base/Optional;->absent()Lcom/google/common/base/Optional;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public slice(JJ)Lcom/google/common/io/ByteSource;
|
|
.locals 7
|
|
|
|
.line 135
|
|
new-instance v6, Lcom/google/common/io/ByteSource$SlicedByteSource;
|
|
|
|
move-object v0, v6
|
|
|
|
move-object v1, p0
|
|
|
|
move-wide v2, p1
|
|
|
|
move-wide v4, p3
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/google/common/io/ByteSource$SlicedByteSource;-><init>(Lcom/google/common/io/ByteSource;JJ)V
|
|
|
|
return-object v6
|
|
.end method
|