tmap/smali_classes5/org/apache/http/entity/EntityTemplate.smali
2022-06-10 21:38:30 +09:00

112 lines
2.4 KiB
Smali

.class public Lorg/apache/http/entity/EntityTemplate;
.super Lorg/apache/http/entity/AbstractHttpEntity;
.source "EntityTemplate.java"
# instance fields
.field private final contentproducer:Lorg/apache/http/entity/ContentProducer;
# direct methods
.method public constructor <init>(Lorg/apache/http/entity/ContentProducer;)V
.locals 1
.line 1
invoke-direct {p0}, Lorg/apache/http/entity/AbstractHttpEntity;-><init>()V
if-eqz p1, :cond_0
.line 2
iput-object p1, p0, Lorg/apache/http/entity/EntityTemplate;->contentproducer:Lorg/apache/http/entity/ContentProducer;
return-void
.line 3
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Content producer may not be null"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public consumeContent()V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
return-void
.end method
.method public getContent()Ljava/io/InputStream;
.locals 2
.line 1
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "Entity template does not implement getContent()"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getContentLength()J
.locals 2
const-wide/16 v0, -0x1
return-wide v0
.end method
.method public isRepeatable()Z
.locals 1
const/4 v0, 0x1
return v0
.end method
.method public isStreaming()Z
.locals 1
const/4 v0, 0x1
return v0
.end method
.method public writeTo(Ljava/io/OutputStream;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-eqz p1, :cond_0
.line 1
iget-object v0, p0, Lorg/apache/http/entity/EntityTemplate;->contentproducer:Lorg/apache/http/entity/ContentProducer;
invoke-interface {v0, p1}, Lorg/apache/http/entity/ContentProducer;->writeTo(Ljava/io/OutputStream;)V
return-void
.line 2
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Output stream may not be null"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method