ForwardingTimeout.java 1.48 KB
package okio;

import java.io.IOException;
import java.util.concurrent.TimeUnit;

public class ForwardingTimeout
  extends Timeout
{
  private Timeout a;
  
  public ForwardingTimeout(Timeout paramTimeout)
  {
    if (paramTimeout == null) {
      throw new IllegalArgumentException("delegate == null");
    }
    this.a = paramTimeout;
  }
  
  public Timeout clearDeadline()
  {
    return this.a.clearDeadline();
  }
  
  public Timeout clearTimeout()
  {
    return this.a.clearTimeout();
  }
  
  public long deadlineNanoTime()
  {
    return this.a.deadlineNanoTime();
  }
  
  public Timeout deadlineNanoTime(long paramLong)
  {
    return this.a.deadlineNanoTime(paramLong);
  }
  
  public final Timeout delegate()
  {
    return this.a;
  }
  
  public boolean hasDeadline()
  {
    return this.a.hasDeadline();
  }
  
  public final ForwardingTimeout setDelegate(Timeout paramTimeout)
  {
    if (paramTimeout == null) {
      throw new IllegalArgumentException("delegate == null");
    }
    this.a = paramTimeout;
    return this;
  }
  
  public void throwIfReached()
    throws IOException
  {
    this.a.throwIfReached();
  }
  
  public Timeout timeout(long paramLong, TimeUnit paramTimeUnit)
  {
    return this.a.timeout(paramLong, paramTimeUnit);
  }
  
  public long timeoutNanos()
  {
    return this.a.timeoutNanos();
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/okio/ForwardingTimeout.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */