ByteStringTypeAdapter.smali
.class Lcom/squareup/wire/ByteStringTypeAdapter;
.super Lcom/google/gson/b0;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/gson/b0<",
"Lokio/e;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Lcom/google/gson/b0;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic read(Lcom/google/gson/stream/a;)Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Lcom/squareup/wire/ByteStringTypeAdapter;->read(Lcom/google/gson/stream/a;)Lokio/e;
move-result-object p1
return-object p1
.end method
.method public read(Lcom/google/gson/stream/a;)Lokio/e;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 2
invoke-virtual {p1}, Lcom/google/gson/stream/a;->i0()Lcom/google/gson/stream/b;
move-result-object v0
sget-object v1, Lcom/google/gson/stream/b;->NULL:Lcom/google/gson/stream/b;
if-ne v0, v1, :cond_d
.line 3
invoke-virtual {p1}, Lcom/google/gson/stream/a;->X()V
const/4 p1, 0x0
return-object p1
.line 4
:cond_d
invoke-virtual {p1}, Lcom/google/gson/stream/a;->c0()Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Lokio/e;->c(Ljava/lang/String;)Lokio/e;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic write(Lcom/google/gson/stream/c;Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
check-cast p2, Lokio/e;
invoke-virtual {p0, p1, p2}, Lcom/squareup/wire/ByteStringTypeAdapter;->write(Lcom/google/gson/stream/c;Lokio/e;)V
return-void
.end method
.method public write(Lcom/google/gson/stream/c;Lokio/e;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p2, :cond_6
.line 2
invoke-virtual {p1}, Lcom/google/gson/stream/c;->D()Lcom/google/gson/stream/c;
goto :goto_d
.line 3
:cond_6
invoke-virtual {p2}, Lokio/e;->b()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Lcom/google/gson/stream/c;->X(Ljava/lang/String;)Lcom/google/gson/stream/c;
:goto_d
return-void
.end method