44 lines
1.0 KiB
Smali
44 lines
1.0 KiB
Smali
.class public Lcom/amazonaws/util/StringInputStream;
|
|
.super Ljava/io/ByteArrayInputStream;
|
|
.source "StringInputStream.java"
|
|
|
|
|
|
# instance fields
|
|
.field private final string:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/UnsupportedEncodingException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/amazonaws/util/StringUtils;->UTF8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lcom/amazonaws/util/StringInputStream;->string:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/amazonaws/util/StringInputStream;->string:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|