## Uses of Interface
java.io.ObjectOutput

- Packages that use ObjectOutput
  Package | Description
  --- | ---
  java.io |

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

    Classes in java.io that implement ObjectOutput
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ObjectOutputStream` An ObjectOutputStream writes primitive data types and graphs of Java objects to an OutputStream.

    Methods in java.io with parameters of type ObjectOutput
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | ObjectOutputStream.PutField.`write(ObjectOutput out)` Deprecated. This method does not write the values contained by this `PutField` object in a proper format, and may result in corruption of the serialization stream. The correct way to write `PutField` data is by calling the `ObjectOutputStream.writeFields()` method.
    `void` | Externalizable.`writeExternal(ObjectOutput out)` The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Copyright © 2025 API Design. All Rights Reserved.