.class public abstract Lag/a; .super Ljava/lang/Object; .source "AbstractMultipartForm.java" # static fields .field public static final d:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; .field public static final e:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; .field public static final f:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; # instance fields .field public final a:Ljava/lang/String; .field public final b:Ljava/nio/charset/Charset; .field public final c:Ljava/lang/String; # direct methods .method public static constructor ()V .locals 2 .line 1 sget-object v0, Lag/g;->f:Ljava/nio/charset/Charset; const-string v1, ": " invoke-static {v0, v1}, Lag/a;->b(Ljava/nio/charset/Charset;Ljava/lang/String;)Lcz/msebera/android/httpclient/util/ByteArrayBuffer; move-result-object v1 sput-object v1, Lag/a;->d:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; const-string v1, "\r\n" .line 2 invoke-static {v0, v1}, Lag/a;->b(Ljava/nio/charset/Charset;Ljava/lang/String;)Lcz/msebera/android/httpclient/util/ByteArrayBuffer; move-result-object v1 sput-object v1, Lag/a;->e:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; const-string v1, "--" .line 3 invoke-static {v0, v1}, Lag/a;->b(Ljava/nio/charset/Charset;Ljava/lang/String;)Lcz/msebera/android/httpclient/util/ByteArrayBuffer; move-result-object v0 sput-object v0, Lag/a;->f:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; return-void .end method .method public constructor (Ljava/lang/String;Ljava/lang/String;)V .locals 1 const/4 v0, 0x0 .line 7 invoke-direct {p0, p1, v0, p2}, Lag/a;->(Ljava/lang/String;Ljava/nio/charset/Charset;Ljava/lang/String;)V return-void .end method .method public constructor (Ljava/lang/String;Ljava/nio/charset/Charset;Ljava/lang/String;)V .locals 1 .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V const-string v0, "Multipart subtype" .line 2 invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; const-string v0, "Multipart boundary" .line 3 invoke-static {p3, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; .line 4 iput-object p1, p0, Lag/a;->a:Ljava/lang/String; if-eqz p2, :cond_0 goto :goto_0 .line 5 :cond_0 sget-object p2, Lag/g;->f:Ljava/nio/charset/Charset; :goto_0 iput-object p2, p0, Lag/a;->b:Ljava/nio/charset/Charset; .line 6 iput-object p3, p0, Lag/a;->c:Ljava/lang/String; return-void .end method .method public static b(Ljava/nio/charset/Charset;Ljava/lang/String;)Lcz/msebera/android/httpclient/util/ByteArrayBuffer; .locals 2 .line 1 invoke-static {p1}, Ljava/nio/CharBuffer;->wrap(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer; move-result-object p1 invoke-virtual {p0, p1}, Ljava/nio/charset/Charset;->encode(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer; move-result-object p0 .line 2 new-instance p1, Lcz/msebera/android/httpclient/util/ByteArrayBuffer; invoke-virtual {p0}, Ljava/nio/ByteBuffer;->remaining()I move-result v0 invoke-direct {p1, v0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->(I)V .line 3 invoke-virtual {p0}, Ljava/nio/ByteBuffer;->array()[B move-result-object v0 invoke-virtual {p0}, Ljava/nio/ByteBuffer;->position()I move-result v1 invoke-virtual {p0}, Ljava/nio/ByteBuffer;->remaining()I move-result p0 invoke-virtual {p1, v0, v1, p0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->append([BII)V return-object p1 .end method .method public static i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 invoke-virtual {p0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->buffer()[B move-result-object v0 invoke-virtual {p0}, Lcz/msebera/android/httpclient/util/ByteArrayBuffer;->length()I move-result p0 const/4 v1, 0x0 invoke-virtual {p1, v0, v1, p0}, Ljava/io/OutputStream;->write([BII)V return-void .end method .method public static j(Ljava/lang/String;Ljava/io/OutputStream;)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 sget-object v0, Lag/g;->f:Ljava/nio/charset/Charset; invoke-static {v0, p0}, Lag/a;->b(Ljava/nio/charset/Charset;Ljava/lang/String;)Lcz/msebera/android/httpclient/util/ByteArrayBuffer; move-result-object p0 .line 2 invoke-static {p0, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V return-void .end method .method public static k(Ljava/lang/String;Ljava/nio/charset/Charset;Ljava/io/OutputStream;)V .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 invoke-static {p1, p0}, Lag/a;->b(Ljava/nio/charset/Charset;Ljava/lang/String;)Lcz/msebera/android/httpclient/util/ByteArrayBuffer; move-result-object p0 .line 2 invoke-static {p0, p2}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V return-void .end method .method public static l(Lag/h;Ljava/io/OutputStream;)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 invoke-virtual {p0}, Lag/h;->b()Ljava/lang/String; move-result-object v0 invoke-static {v0, p1}, Lag/a;->j(Ljava/lang/String;Ljava/io/OutputStream;)V .line 2 sget-object v0, Lag/a;->d:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; invoke-static {v0, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V .line 3 invoke-virtual {p0}, Lag/h;->a()Ljava/lang/String; move-result-object p0 invoke-static {p0, p1}, Lag/a;->j(Ljava/lang/String;Ljava/io/OutputStream;)V .line 4 sget-object p0, Lag/a;->e:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; invoke-static {p0, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V return-void .end method .method public static m(Lag/h;Ljava/nio/charset/Charset;Ljava/io/OutputStream;)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 invoke-virtual {p0}, Lag/h;->b()Ljava/lang/String; move-result-object v0 invoke-static {v0, p1, p2}, Lag/a;->k(Ljava/lang/String;Ljava/nio/charset/Charset;Ljava/io/OutputStream;)V .line 2 sget-object v0, Lag/a;->d:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; invoke-static {v0, p2}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V .line 3 invoke-virtual {p0}, Lag/h;->a()Ljava/lang/String; move-result-object p0 invoke-static {p0, p1, p2}, Lag/a;->k(Ljava/lang/String;Ljava/nio/charset/Charset;Ljava/io/OutputStream;)V .line 4 sget-object p0, Lag/a;->e:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; invoke-static {p0, p2}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V return-void .end method # virtual methods .method public a(Ljava/io/OutputStream;Z)V .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 iget-object v0, p0, Lag/a;->b:Ljava/nio/charset/Charset; invoke-virtual {p0}, Lag/a;->e()Ljava/lang/String; move-result-object v1 invoke-static {v0, v1}, Lag/a;->b(Ljava/nio/charset/Charset;Ljava/lang/String;)Lcz/msebera/android/httpclient/util/ByteArrayBuffer; move-result-object v0 .line 2 invoke-virtual {p0}, Lag/a;->d()Ljava/util/List; move-result-object v1 invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v1 :goto_0 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_1 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Lag/b; .line 3 sget-object v3, Lag/a;->f:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; invoke-static {v3, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V .line 4 invoke-static {v0, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V .line 5 sget-object v3, Lag/a;->e:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; invoke-static {v3, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V .line 6 invoke-virtual {p0, v2, p1}, Lag/a;->c(Lag/b;Ljava/io/OutputStream;)V .line 7 invoke-static {v3, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V if-eqz p2, :cond_0 .line 8 invoke-virtual {v2}, Lag/b;->e()Lbg/c; move-result-object v2 invoke-interface {v2, p1}, Lbg/c;->writeTo(Ljava/io/OutputStream;)V .line 9 :cond_0 invoke-static {v3, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V goto :goto_0 .line 10 :cond_1 sget-object p2, Lag/a;->f:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; invoke-static {p2, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V .line 11 invoke-static {v0, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V .line 12 invoke-static {p2, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V .line 13 sget-object p2, Lag/a;->e:Lcz/msebera/android/httpclient/util/ByteArrayBuffer; invoke-static {p2, p1}, Lag/a;->i(Lcz/msebera/android/httpclient/util/ByteArrayBuffer;Ljava/io/OutputStream;)V return-void .end method .method public abstract c(Lag/b;Ljava/io/OutputStream;)V .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .end method .method public abstract d()Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List<", "Lag/b;", ">;" } .end annotation .end method .method public e()Ljava/lang/String; .locals 1 .line 1 iget-object v0, p0, Lag/a;->c:Ljava/lang/String; return-object v0 .end method .method public f()Ljava/nio/charset/Charset; .locals 1 .line 1 iget-object v0, p0, Lag/a;->b:Ljava/nio/charset/Charset; return-object v0 .end method .method public g()Ljava/lang/String; .locals 1 .line 1 iget-object v0, p0, Lag/a;->a:Ljava/lang/String; return-object v0 .end method .method public h()J .locals 10 .line 1 invoke-virtual {p0}, Lag/a;->d()Ljava/util/List; move-result-object v0 invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v0 const-wide/16 v1, 0x0 move-wide v3, v1 :goto_0 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v5 const-wide/16 v6, -0x1 if-eqz v5, :cond_1 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v5 check-cast v5, Lag/b; .line 2 invoke-virtual {v5}, Lag/b;->e()Lbg/c; move-result-object v5 .line 3 invoke-interface {v5}, Lbg/d;->getContentLength()J move-result-wide v8 cmp-long v5, v8, v1 if-ltz v5, :cond_0 add-long/2addr v3, v8 goto :goto_0 :cond_0 return-wide v6 .line 4 :cond_1 new-instance v0, Ljava/io/ByteArrayOutputStream; invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;->()V const/4 v1, 0x0 .line 5 :try_start_0 invoke-virtual {p0, v0, v1}, Lag/a;->a(Ljava/io/OutputStream;Z)V .line 6 invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B move-result-object v0 .line 7 array-length v0, v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 int-to-long v0, v0 add-long/2addr v3, v0 return-wide v3 :catch_0 return-wide v6 .end method .method public n(Ljava/io/OutputStream;)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const/4 v0, 0x1 .line 1 invoke-virtual {p0, p1, v0}, Lag/a;->a(Ljava/io/OutputStream;Z)V return-void .end method