You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.4 KiB
100 lines
2.4 KiB
.class final Lcom/google/common/io/Resources$UrlByteSource; |
|
.super Lcom/google/common/io/ByteSource; |
|
.source "Resources.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/google/common/io/Resources; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x1a |
|
name = "UrlByteSource" |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field private final url:Ljava/net/URL; |
|
|
|
|
|
# direct methods |
|
.method private constructor <init>(Ljava/net/URL;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 81 |
|
invoke-direct {p0}, Lcom/google/common/io/ByteSource;-><init>()V |
|
|
|
.line 82 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/net/URL; |
|
|
|
iput-object v0, p0, Lcom/google/common/io/Resources$UrlByteSource;->url:Ljava/net/URL; |
|
|
|
.line 83 |
|
return-void |
|
.end method |
|
|
|
.method synthetic constructor <init>(Ljava/net/URL;Lcom/google/common/io/Resources$1;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 77 |
|
invoke-direct {p0, p1}, Lcom/google/common/io/Resources$UrlByteSource;-><init>(Ljava/net/URL;)V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public openStream()Ljava/io/InputStream; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 87 |
|
iget-object v0, p0, Lcom/google/common/io/Resources$UrlByteSource;->url:Ljava/net/URL; |
|
|
|
invoke-virtual {v0}, Ljava/net/URL;->openStream()Ljava/io/InputStream; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public toString()Ljava/lang/String; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 92 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v1, "Resources.asByteSource(" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, p0, Lcom/google/common/io/Resources$UrlByteSource;->url:Ljava/net/URL; |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, ")" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method
|
|
|