123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- .class public abstract Lokio/ForwardingSink;
- .super Ljava/lang/Object;
- .source ""
- # interfaces
- .implements Lokio/Sink;
- # instance fields
- .field private final delegate:Lokio/Sink;
- # direct methods
- .method public constructor <init>(Lokio/Sink;)V
- .locals 1
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- if-eqz p1, :cond_0
- iput-object p1, p0, Lokio/ForwardingSink;->delegate:Lokio/Sink;
- return-void
- :cond_0
- new-instance p1, Ljava/lang/IllegalArgumentException;
- const-string v0, "delegate == null"
- invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
- throw p1
- .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/ForwardingSink;->delegate:Lokio/Sink;
- invoke-interface {v0}, Lokio/Sink;->close()V
- return-void
- .end method
- .method public final delegate()Lokio/Sink;
- .locals 1
- iget-object v0, p0, Lokio/ForwardingSink;->delegate:Lokio/Sink;
- return-object v0
- .end method
- .method public flush()V
- .locals 1
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-object v0, p0, Lokio/ForwardingSink;->delegate:Lokio/Sink;
- invoke-interface {v0}, Lokio/Sink;->flush()V
- return-void
- .end method
- .method public timeout()Lokio/Timeout;
- .locals 1
- iget-object v0, p0, Lokio/ForwardingSink;->delegate:Lokio/Sink;
- invoke-interface {v0}, Lokio/Sink;->timeout()Lokio/Timeout;
- move-result-object v0
- return-object v0
- .end method
- .method public toString()Ljava/lang/String;
- .locals 2
- new-instance v0, Ljava/lang/StringBuilder;
- invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
- invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
- move-result-object v1
- invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
- move-result-object v1
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- const-string v1, "("
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-object v1, p0, Lokio/ForwardingSink;->delegate:Lokio/Sink;
- invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
- move-result-object v1
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- const-string v1, ")"
- 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(Lokio/Buffer;J)V
- .locals 1
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-object v0, p0, Lokio/ForwardingSink;->delegate:Lokio/Sink;
- invoke-interface {v0, p1, p2, p3}, Lokio/Sink;->write(Lokio/Buffer;J)V
- return-void
- .end method
|