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

ma.vi.base.io.DataOutputStream Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2018 Vikash Madhow
 */

package ma.vi.base.io;

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

/**
 * Wraps a {@link DataOutput} in an {@link OutputStream}.
 *
 * @author [email protected]
 */
public class DataOutputStream extends OutputStream {
  public DataOutputStream(DataOutput output) {
    this.output = output;
  }

  @Override
  public void write(int b) throws IOException {
    output.writeByte(b);
  }

  /**
   * The underlying input.
   */
  private final DataOutput output;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy