## Uses of Interface
java.io.DataOutput

- Packages that use DataOutput
  Package | Description
  --- | ---
  java.io | Provides for system input and output through data streams, serialization and the file system.
  java.rmi.server | Provides classes and interfaces for supporting the server side of RMI.
  javax.imageio.stream | A package of the Java Image I/O API dealing with low-level I/O from files and streams.

- - ### Uses of DataOutput in java.io

    Subinterfaces of DataOutput in java.io
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `ObjectOutput` ObjectOutput extends the DataOutput interface to include writing of objects.

    Classes in java.io that implement DataOutput
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `DataOutputStream` A data output stream lets an application write primitive Java data types to an output stream in a portable way.
    `class` | `ObjectOutputStream` An ObjectOutputStream writes primitive data types and graphs of Java objects to an OutputStream.
    `class` | `RandomAccessFile` Instances of this class support both reading and writing to a random access file.

  - ### Uses of DataOutput in java.rmi.server

    Methods in java.rmi.server with parameters of type DataOutput
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | UID.`write(DataOutput out)` Marshals a binary representation of this `UID` to a `DataOutput` instance.

  - ### Uses of DataOutput in javax.imageio.stream

    Subinterfaces of DataOutput in javax.imageio.stream
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `ImageOutputStream` A seekable output stream interface for use by `ImageWriter`s.

    Classes in javax.imageio.stream that implement DataOutput
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `FileCacheImageOutputStream` An implementation of `ImageOutputStream` that writes its output to a regular `OutputStream`.
    `class` | `FileImageOutputStream` An implementation of `ImageOutputStream` that writes its output directly to a `File` or `RandomAccessFile`.
    `class` | `ImageOutputStreamImpl` An abstract class implementing the `ImageOutputStream` interface.
    `class` | `MemoryCacheImageOutputStream` An implementation of `ImageOutputStream` that writes its output to a regular `OutputStream`.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.