Class DataOutputOutputStream

java.lang.Object
java.io.OutputStream
org.apache.drill.common.util.DataOutputOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class DataOutputOutputStream extends OutputStream
  • Method Details

    • constructOutputStream

      public static OutputStream constructOutputStream(DataOutput out)
      Construct an OutputStream from the given DataOutput. If 'out' is already an OutputStream, simply returns it. Otherwise, wraps it in an OutputStream.
      Parameters:
      out - the DataOutput to wrap
      Returns:
      an OutputStream instance that outputs to 'out'
    • write

      public void write(int b) throws IOException
      Specified by:
      write in class OutputStream
      Throws:
      IOException
    • write

      public void write(byte[] b, int off, int len) throws IOException
      Overrides:
      write in class OutputStream
      Throws:
      IOException
    • write

      public void write(byte[] b) throws IOException
      Overrides:
      write in class OutputStream
      Throws:
      IOException