.class public Lorg/apache/http/impl/conn/LoggingSessionInputBuffer; .super Ljava/lang/Object; .source "LoggingSessionInputBuffer.java" # interfaces .implements Lorg/apache/http/io/SessionInputBuffer; .implements Lorg/apache/http/io/EofSensor; # annotations .annotation runtime Ljava/lang/Deprecated; .end annotation # instance fields .field private final charset:Ljava/lang/String; .field private final eofSensor:Lorg/apache/http/io/EofSensor; .field private final in:Lorg/apache/http/io/SessionInputBuffer; .field private final wire:Lorg/apache/http/impl/conn/Wire; # direct methods .method public constructor (Lorg/apache/http/io/SessionInputBuffer;Lorg/apache/http/impl/conn/Wire;)V .registers 4 const/4 v0, 0x0 .line 76 invoke-direct {p0, p1, p2, v0}, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->(Lorg/apache/http/io/SessionInputBuffer;Lorg/apache/http/impl/conn/Wire;Ljava/lang/String;)V return-void .end method .method public constructor (Lorg/apache/http/io/SessionInputBuffer;Lorg/apache/http/impl/conn/Wire;Ljava/lang/String;)V .registers 5 .line 68 invoke-direct {p0}, Ljava/lang/Object;->()V .line 69 iput-object p1, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->in:Lorg/apache/http/io/SessionInputBuffer; .line 70 instance-of v0, p1, Lorg/apache/http/io/EofSensor; if-eqz v0, :cond_c check-cast p1, Lorg/apache/http/io/EofSensor; goto :goto_d :cond_c const/4 p1, 0x0 :goto_d iput-object p1, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->eofSensor:Lorg/apache/http/io/EofSensor; .line 71 iput-object p2, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; if-eqz p3, :cond_14 goto :goto_1a .line 72 :cond_14 sget-object p1, Lorg/apache/http/Consts;->ASCII:Ljava/nio/charset/Charset; invoke-virtual {p1}, Ljava/nio/charset/Charset;->name()Ljava/lang/String; move-result-object p3 :goto_1a iput-object p3, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->charset:Ljava/lang/String; return-void .end method # virtual methods .method public getMetrics()Lorg/apache/http/io/HttpTransportMetrics; .registers 2 .line 135 iget-object v0, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->in:Lorg/apache/http/io/SessionInputBuffer; invoke-interface {v0}, Lorg/apache/http/io/SessionInputBuffer;->getMetrics()Lorg/apache/http/io/HttpTransportMetrics; move-result-object v0 return-object v0 .end method .method public isDataAvailable(I)Z .registers 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 81 iget-object v0, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->in:Lorg/apache/http/io/SessionInputBuffer; invoke-interface {v0, p1}, Lorg/apache/http/io/SessionInputBuffer;->isDataAvailable(I)Z move-result p1 return p1 .end method .method public isEof()Z .registers 2 .line 140 iget-object v0, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->eofSensor:Lorg/apache/http/io/EofSensor; if-eqz v0, :cond_9 .line 141 invoke-interface {v0}, Lorg/apache/http/io/EofSensor;->isEof()Z move-result v0 return v0 :cond_9 const/4 v0, 0x0 return v0 .end method .method public read()I .registers 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 95 iget-object v0, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->in:Lorg/apache/http/io/SessionInputBuffer; invoke-interface {v0}, Lorg/apache/http/io/SessionInputBuffer;->read()I move-result v0 .line 96 iget-object v1, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; invoke-virtual {v1}, Lorg/apache/http/impl/conn/Wire;->enabled()Z move-result v1 if-eqz v1, :cond_16 const/4 v1, -0x1 if-eq v0, v1, :cond_16 .line 97 iget-object v1, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; invoke-virtual {v1, v0}, Lorg/apache/http/impl/conn/Wire;->input(I)V :cond_16 return v0 .end method .method public read([B)I .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 104 iget-object v0, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->in:Lorg/apache/http/io/SessionInputBuffer; invoke-interface {v0, p1}, Lorg/apache/http/io/SessionInputBuffer;->read([B)I move-result v0 .line 105 iget-object v1, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; invoke-virtual {v1}, Lorg/apache/http/impl/conn/Wire;->enabled()Z move-result v1 if-eqz v1, :cond_16 if-lez v0, :cond_16 .line 106 iget-object v1, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; const/4 v2, 0x0 invoke-virtual {v1, p1, v2, v0}, Lorg/apache/http/impl/conn/Wire;->input([BII)V :cond_16 return v0 .end method .method public read([BII)I .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 86 iget-object v0, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->in:Lorg/apache/http/io/SessionInputBuffer; invoke-interface {v0, p1, p2, p3}, Lorg/apache/http/io/SessionInputBuffer;->read([BII)I move-result p3 .line 87 iget-object v0, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; invoke-virtual {v0}, Lorg/apache/http/impl/conn/Wire;->enabled()Z move-result v0 if-eqz v0, :cond_15 if-lez p3, :cond_15 .line 88 iget-object v0, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; invoke-virtual {v0, p1, p2, p3}, Lorg/apache/http/impl/conn/Wire;->input([BII)V :cond_15 return p3 .end method .method public readLine(Lorg/apache/http/util/CharArrayBuffer;)I .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 123 iget-object v0, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->in:Lorg/apache/http/io/SessionInputBuffer; invoke-interface {v0, p1}, Lorg/apache/http/io/SessionInputBuffer;->readLine(Lorg/apache/http/util/CharArrayBuffer;)I move-result v0 .line 124 iget-object v1, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; invoke-virtual {v1}, Lorg/apache/http/impl/conn/Wire;->enabled()Z move-result v1 if-eqz v1, :cond_2f if-ltz v0, :cond_2f .line 125 invoke-virtual {p1}, Lorg/apache/http/util/CharArrayBuffer;->length()I move-result v1 sub-int/2addr v1, v0 .line 126 new-instance v2, Ljava/lang/String; invoke-virtual {p1}, Lorg/apache/http/util/CharArrayBuffer;->buffer()[C move-result-object p1 invoke-direct {v2, p1, v1, v0}, Ljava/lang/String;->([CII)V .line 127 const-string p1, "\r\n" invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p1 .line 128 iget-object v1, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; iget-object v2, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->charset:Ljava/lang/String; invoke-virtual {p1, v2}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B move-result-object p1 invoke-virtual {v1, p1}, Lorg/apache/http/impl/conn/Wire;->input([B)V :cond_2f return v0 .end method .method public readLine()Ljava/lang/String; .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 113 iget-object v0, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->in:Lorg/apache/http/io/SessionInputBuffer; invoke-interface {v0}, Lorg/apache/http/io/SessionInputBuffer;->readLine()Ljava/lang/String; move-result-object v0 .line 114 iget-object v1, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; invoke-virtual {v1}, Lorg/apache/http/impl/conn/Wire;->enabled()Z move-result v1 if-eqz v1, :cond_2e if-eqz v0, :cond_2e .line 115 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, "\r\n" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 .line 116 iget-object v2, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->wire:Lorg/apache/http/impl/conn/Wire; iget-object v3, p0, Lorg/apache/http/impl/conn/LoggingSessionInputBuffer;->charset:Ljava/lang/String; invoke-virtual {v1, v3}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B move-result-object v1 invoke-virtual {v2, v1}, Lorg/apache/http/impl/conn/Wire;->input([B)V :cond_2e return-object v0 .end method