@@ -0,0 +1,1855 @@
+/*%0A * Copyright (C) 2014 Google Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not%0A * use this file except in compliance with the License. You may obtain a copy of%0A * 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, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A * License for the specific language governing permissions and limitations under%0A * the License.%0A */%0Apackage com.google.cloud.genomics.dataflow.coders;%0A%0Aimport com.google.cloud.dataflow.sdk.coders.Coder;%0Aimport com.google.cloud.dataflow.sdk.coders.CoderException;%0Aimport com.google.cloud.dataflow.sdk.coders.StandardCoder;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.OutputStream;%0Aimport java.util.List;%0A%0Apublic abstract class DelegatingStandardCoder%3CX, Y%3E extends StandardCoder%3CX%3E %7B%0A%0A  private final Coder%3CY%3E delegate;%0A%0A  protected DelegatingStandardCoder(Coder%3CY%3E delegate) %7B%0A    this.delegate = delegate;%0A  %7D%0A%0A  @Override%0A  public List%3C? extends Coder%3C?%3E%3E getCoderArguments() %7B%0A    return delegate.getCoderArguments();%0A  %7D%0A%0A  @Override public final X decode(InputStream inStream, Context context)%0A      throws CoderException, IOException %7B%0A    return from(delegate.decode(inStream, context));%0A  %7D%0A%0A  @Override public final void encode(X value, OutputStream outStream, Context context)%0A      throws CoderException, IOException %7B%0A    delegate.encode(to(value), outStream, context);%0A  %7D%0A%0A  protected abstract X from(Y object) throws CoderException, IOException;%0A%0A  @Override public final boolean isDeterministic() %7B%0A    return delegate.isDeterministic();%0A  %7D%0A%0A  protected abstract Y to(X object) throws CoderException, IOException;%0A%7D

Add DelegatingStandardCoder