.class public Lorg/apache/http/impl/io/IdentityInputStream; .super Ljava/io/InputStream; .source "IdentityInputStream.java" # instance fields .field private closed:Z .field private final in:Lorg/apache/http/io/SessionInputBuffer; # direct methods .method public constructor (Lorg/apache/http/io/SessionInputBuffer;)V .registers 3 .line 61 invoke-direct {p0}, Ljava/io/InputStream;->()V const/4 v0, 0x0 .line 53 iput-boolean v0, p0, Lorg/apache/http/impl/io/IdentityInputStream;->closed:Z .line 62 const-string v0, "Session input buffer" invoke-static {p1, v0}, Lorg/apache/http/util/Args;->notNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; move-result-object p1 check-cast p1, Lorg/apache/http/io/SessionInputBuffer; iput-object p1, p0, Lorg/apache/http/impl/io/IdentityInputStream;->in:Lorg/apache/http/io/SessionInputBuffer; return-void .end method # virtual methods .method public available()I .registers 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 67 iget-object v0, p0, Lorg/apache/http/impl/io/IdentityInputStream;->in:Lorg/apache/http/io/SessionInputBuffer; instance-of v1, v0, Lorg/apache/http/io/BufferInfo; if-eqz v1, :cond_d .line 68 check-cast v0, Lorg/apache/http/io/BufferInfo; invoke-interface {v0}, Lorg/apache/http/io/BufferInfo;->length()I move-result v0 return v0 :cond_d const/4 v0, 0x0 return v0 .end method .method public close()V .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const/4 v0, 0x1 .line 76 iput-boolean v0, p0, Lorg/apache/http/impl/io/IdentityInputStream;->closed:Z return-void .end method .method public read()I .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 81 iget-boolean v0, p0, Lorg/apache/http/impl/io/IdentityInputStream;->closed:Z if-eqz v0, :cond_6 const/4 v0, -0x1 return v0 .line 84 :cond_6 iget-object v0, p0, Lorg/apache/http/impl/io/IdentityInputStream;->in:Lorg/apache/http/io/SessionInputBuffer; invoke-interface {v0}, Lorg/apache/http/io/SessionInputBuffer;->read()I move-result v0 return v0 .end method .method public read([BII)I .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 90 iget-boolean v0, p0, Lorg/apache/http/impl/io/IdentityInputStream;->closed:Z if-eqz v0, :cond_6 const/4 p1, -0x1 return p1 .line 93 :cond_6 iget-object v0, p0, Lorg/apache/http/impl/io/IdentityInputStream;->in:Lorg/apache/http/io/SessionInputBuffer; invoke-interface {v0, p1, p2, p3}, Lorg/apache/http/io/SessionInputBuffer;->read([BII)I move-result p1 return p1 .end method