@@ -0,0 +1,2121 @@
+/*%0A * Copyright (C) 2015 Square, Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage okio;%0A%0Aimport java.io.IOException;%0Aimport java.util.concurrent.TimeUnit;%0A%0A/** A %7B@link Timeout%7D which forwards calls to another. Useful for subclassing. */%0Apublic class ForwardingTimeout extends Timeout %7B%0A  private Timeout delegate;%0A%0A  public ForwardingTimeout(Timeout delegate) %7B%0A    if (delegate == null) throw new IllegalArgumentException(%22delegate == null%22);%0A    this.delegate = delegate;%0A  %7D%0A%0A  /** %7B@link Timeout%7D instance to which this instance is currently delegating. */%0A  public final Timeout delegate() %7B%0A    return delegate;%0A  %7D%0A%0A  public final ForwardingTimeout setDelegate(Timeout delegate) %7B%0A    if (delegate == null) throw new IllegalArgumentException(%22delegate == null%22);%0A    this.delegate = delegate;%0A    return this;%0A  %7D%0A%0A  @Override public Timeout timeout(long timeout, TimeUnit unit) %7B%0A    return delegate.timeout(timeout, unit);%0A  %7D%0A%0A  @Override public long timeoutNanos() %7B%0A    return delegate.timeoutNanos();%0A  %7D%0A%0A  @Override public boolean hasDeadline() %7B%0A    return delegate.hasDeadline();%0A  %7D%0A%0A  @Override public long deadlineNanoTime() %7B%0A    return delegate.deadlineNanoTime();%0A  %7D%0A%0A  @Override public Timeout deadlineNanoTime(long deadlineNanoTime) %7B%0A    return delegate.deadlineNanoTime(deadlineNanoTime);%0A  %7D%0A%0A  @Override public Timeout clearTimeout() %7B%0A    return delegate.clearTimeout();%0A  %7D%0A%0A  @Override public Timeout clearDeadline() %7B%0A    return delegate.clearDeadline();%0A  %7D%0A%0A  @Override public void throwIfReached() throws IOException %7B%0A    delegate.throwIfReached();%0A  %7D%0A%7D%0A

add ForwardingTimeout.java