DataOutputAsStream
Date: 2016-12-03

com.fasterxml.jackson.core.io

## Class DataOutputAsStream

- java.lang.Object
- - java.io.OutputStream
  - - com.fasterxml.jackson.core.io.DataOutputAsStream

- All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

      public class DataOutputAsStream
      extends java.io.OutputStream

  Helper class to support use of `DataOutput` for output, directly, without caller having to provide for implementation.
  Since:
    2.8

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected java.io.DataOutput` | `_output`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DataOutputAsStream(java.io.DataOutput out)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `write(byte[] b)`
    `void` | `write(byte[] b, int offset, int length)`
    `void` | `write(int b)`

    - ### Methods inherited from class java.io.OutputStream

      `close, flush`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### _output

          protected final java.io.DataOutput _output

  - ### Constructor Detail

    - #### DataOutputAsStream

          public DataOutputAsStream(java.io.DataOutput out)

  - ### Method Detail

    - #### write

          public void write(int b)
                     throws java.io.IOException

      Specified by:
        `write` in class `java.io.OutputStream`
      Throws:
        `java.io.IOException`

    - #### write

          public void write(byte[] b)
                     throws java.io.IOException

      Overrides:
        `write` in class `java.io.OutputStream`
      Throws:
        `java.io.IOException`

    - #### write

          public void write(byte[] b,
                   int offset,
                   int length)
                     throws java.io.IOException

      Overrides:
        `write` in class `java.io.OutputStream`
      Throws:
        `java.io.IOException`