.class public Lorg/apache/http/client/entity/GzipCompressingEntity; .super Lorg/apache/http/entity/HttpEntityWrapper; .source "GzipCompressingEntity.java" # static fields .field private static final GZIP_CODEC:Ljava/lang/String; = "gzip" # direct methods .method public constructor (Lorg/apache/http/HttpEntity;)V .registers 2 .line 79 invoke-direct {p0, p1}, Lorg/apache/http/entity/HttpEntityWrapper;->(Lorg/apache/http/HttpEntity;)V return-void .end method # virtual methods .method public getContent()Ljava/io/InputStream; .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 100 new-instance v0, Ljava/lang/UnsupportedOperationException; invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;->()V throw v0 .end method .method public getContentEncoding()Lorg/apache/http/Header; .registers 4 .line 84 new-instance v0, Lorg/apache/http/message/BasicHeader; const-string v1, "Content-Encoding" const-string v2, "gzip" invoke-direct {v0, v1, v2}, Lorg/apache/http/message/BasicHeader;->(Ljava/lang/String;Ljava/lang/String;)V return-object v0 .end method .method public getContentLength()J .registers 3 const-wide/16 v0, -0x1 return-wide v0 .end method .method public isChunked()Z .registers 2 const/4 v0, 0x1 return v0 .end method .method public writeTo(Ljava/io/OutputStream;)V .registers 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 105 const-string v0, "Output stream" invoke-static {p1, v0}, Lorg/apache/http/util/Args;->notNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; .line 106 new-instance v0, Ljava/util/zip/GZIPOutputStream; invoke-direct {v0, p1}, Ljava/util/zip/GZIPOutputStream;->(Ljava/io/OutputStream;)V .line 107 iget-object p1, p0, Lorg/apache/http/client/entity/GzipCompressingEntity;->wrappedEntity:Lorg/apache/http/HttpEntity; invoke-interface {p1, v0}, Lorg/apache/http/HttpEntity;->writeTo(Ljava/io/OutputStream;)V .line 110 invoke-virtual {v0}, Ljava/util/zip/GZIPOutputStream;->close()V return-void .end method