AbstractInputStreamContent.smali

.class public abstract Lcom/google/api/client/http/AbstractInputStreamContent;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/google/api/client/http/HttpContent;


# instance fields
.field private a:Ljava/lang/String;

.field private b:Z


# direct methods
.method public constructor <init>(Ljava/lang/String;)V
    .registers 3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/google/api/client/http/AbstractInputStreamContent;->b:Z

    invoke-virtual {p0, p1}, Lcom/google/api/client/http/AbstractInputStreamContent;->f(Ljava/lang/String;)Lcom/google/api/client/http/AbstractInputStreamContent;

    return-void
.end method


# virtual methods
.method public final c()Z
    .registers 2

    iget-boolean v0, p0, Lcom/google/api/client/http/AbstractInputStreamContent;->b:Z

    return v0
.end method

.method public abstract d()Ljava/io/InputStream;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation
.end method

.method public e(Z)Lcom/google/api/client/http/AbstractInputStreamContent;
    .registers 2

    iput-boolean p1, p0, Lcom/google/api/client/http/AbstractInputStreamContent;->b:Z

    return-object p0
.end method

.method public f(Ljava/lang/String;)Lcom/google/api/client/http/AbstractInputStreamContent;
    .registers 2

    iput-object p1, p0, Lcom/google/api/client/http/AbstractInputStreamContent;->a:Ljava/lang/String;

    return-object p0
.end method

.method public getType()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Lcom/google/api/client/http/AbstractInputStreamContent;->a:Ljava/lang/String;

    return-object v0
.end method

.method public writeTo(Ljava/io/OutputStream;)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p0}, Lcom/google/api/client/http/AbstractInputStreamContent;->d()Ljava/io/InputStream;

    move-result-object v0

    iget-boolean v1, p0, Lcom/google/api/client/http/AbstractInputStreamContent;->b:Z

    invoke-static {v0, p1, v1}, Lcom/google/api/client/util/IOUtils;->c(Ljava/io/InputStream;Ljava/io/OutputStream;Z)V

    invoke-virtual {p1}, Ljava/io/OutputStream;->flush()V

    return-void
.end method