123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- .class Lokio/RealBufferedSink$1;
- .super Ljava/io/OutputStream;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/EnclosingMethod;
- value = Lokio/RealBufferedSink;->outputStream()Ljava/io/OutputStream;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x0
- name = null
- .end annotation
- # instance fields
- .field final synthetic this$0:Lokio/RealBufferedSink;
- # direct methods
- .method constructor <init>(Lokio/RealBufferedSink;)V
- .locals 0
- iput-object p1, p0, Lokio/RealBufferedSink$1;->this$0:Lokio/RealBufferedSink;
- invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V
- return-void
- .end method
- # virtual methods
- .method public close()V
- .locals 1
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-object v0, p0, Lokio/RealBufferedSink$1;->this$0:Lokio/RealBufferedSink;
- invoke-virtual {v0}, Lokio/RealBufferedSink;->close()V
- return-void
- .end method
- .method public flush()V
- .locals 2
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-object v0, p0, Lokio/RealBufferedSink$1;->this$0:Lokio/RealBufferedSink;
- iget-boolean v1, v0, Lokio/RealBufferedSink;->closed:Z
- if-nez v1, :cond_0
- invoke-virtual {v0}, Lokio/RealBufferedSink;->flush()V
- :cond_0
- return-void
- .end method
- .method public toString()Ljava/lang/String;
- .locals 2
- new-instance v0, Ljava/lang/StringBuilder;
- invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
- iget-object v1, p0, Lokio/RealBufferedSink$1;->this$0:Lokio/RealBufferedSink;
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
- const-string v1, ".outputStream()"
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
- move-result-object v0
- return-object v0
- .end method
- .method public write(I)V
- .locals 2
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-object v0, p0, Lokio/RealBufferedSink$1;->this$0:Lokio/RealBufferedSink;
- iget-boolean v1, v0, Lokio/RealBufferedSink;->closed:Z
- if-nez v1, :cond_0
- iget-object v0, v0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
- int-to-byte p1, p1
- invoke-virtual {v0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
- iget-object p1, p0, Lokio/RealBufferedSink$1;->this$0:Lokio/RealBufferedSink;
- invoke-virtual {p1}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
- return-void
- :cond_0
- new-instance p1, Ljava/io/IOException;
- const-string v0, "closed"
- invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- .method public write([BII)V
- .locals 2
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-object v0, p0, Lokio/RealBufferedSink$1;->this$0:Lokio/RealBufferedSink;
- iget-boolean v1, v0, Lokio/RealBufferedSink;->closed:Z
- if-nez v1, :cond_0
- iget-object v0, v0, Lokio/RealBufferedSink;->buffer:Lokio/Buffer;
- invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->write([BII)Lokio/Buffer;
- iget-object p1, p0, Lokio/RealBufferedSink$1;->this$0:Lokio/RealBufferedSink;
- invoke-virtual {p1}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
- return-void
- :cond_0
- new-instance p1, Ljava/io/IOException;
- const-string p2, "closed"
- invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
|