99 lines
2.6 KiB
Smali
99 lines
2.6 KiB
Smali
.class Lorg/apache/http/entity/mime/HttpStrictMultipart;
|
|
.super Lorg/apache/http/entity/mime/AbstractMultipartForm;
|
|
.source "HttpStrictMultipart.java"
|
|
|
|
|
|
# instance fields
|
|
.field private final parts:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lorg/apache/http/entity/mime/FormBodyPart;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/nio/charset/Charset;Ljava/lang/String;Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/nio/charset/Charset;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/List<",
|
|
"Lorg/apache/http/entity/mime/FormBodyPart;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2}, Lorg/apache/http/entity/mime/AbstractMultipartForm;-><init>(Ljava/nio/charset/Charset;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
iput-object p3, p0, Lorg/apache/http/entity/mime/HttpStrictMultipart;->parts:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public formatMultipartHeader(Lorg/apache/http/entity/mime/FormBodyPart;Ljava/io/OutputStream;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lorg/apache/http/entity/mime/FormBodyPart;->getHeader()Lorg/apache/http/entity/mime/Header;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Lorg/apache/http/entity/mime/Header;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lorg/apache/http/entity/mime/MinimalField;
|
|
|
|
.line 3
|
|
invoke-static {v0, p2}, Lorg/apache/http/entity/mime/AbstractMultipartForm;->writeField(Lorg/apache/http/entity/mime/MinimalField;Ljava/io/OutputStream;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public getBodyParts()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lorg/apache/http/entity/mime/FormBodyPart;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/apache/http/entity/mime/HttpStrictMultipart;->parts:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|