ma.vi.base.io.DataOutputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.vikmad.base Show documentation
Show all versions of com.vikmad.base Show documentation
Base algos, data structures and utilities
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