All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.onthegomap.planetiler.util.DelegatingOutputStream Maven / Gradle / Ivy

package com.onthegomap.planetiler.util;

import java.io.IOException;
import java.io.OutputStream;

abstract class DelegatingOutputStream extends OutputStream {

  private final OutputStream delegate;

  protected DelegatingOutputStream(OutputStream wrapped) {
    this.delegate = wrapped;
  }

  @Override
  public void write(int i) throws IOException {
    delegate.write(i);
  }

  @Override
  public void write(byte[] b) throws IOException {
    delegate.write(b);
  }

  @Override
  public void write(byte[] b, int off, int len) throws IOException {
    delegate.write(b, off, len);
  }

  @Override
  public void flush() throws IOException {
    delegate.flush();
  }

  @Override
  public void close() throws IOException {
    delegate.close();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy