Uses of Interface java.io.ObjectOutput (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Interface
java.io.ObjectOutput

- Packages that use ObjectOutput
  Package | Description
  --- | ---
  java.awt.datatransfer | Provides interfaces and classes for transferring data between and within applications.
  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.activation |
  javax.management.loading | Provides the classes which implement advanced dynamic loading.

- - ### Uses of ObjectOutput in java.awt.datatransfer

    Methods in java.awt.datatransfer with parameters of type ObjectOutput
    Modifier and Type | Method and Description
    --- | ---
    `void` | DataFlavor.`writeExternal(ObjectOutput os)` Serializes this `DataFlavor`.

  - ### 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.

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

    Methods in java.rmi.server that return ObjectOutput
    Modifier and Type | Method and Description
    --- | ---
    `ObjectOutput` | RemoteCall.`getOutputStream()` Deprecated. no replacement
    `ObjectOutput` | RemoteCall.`getResultStream(boolean success)` Deprecated. no replacement

    Methods in java.rmi.server with parameters of type ObjectOutput
    Modifier and Type | Method and Description
    --- | ---
    `String` | RemoteRef.`getRefClass(ObjectOutput out)` Returns the class name of the ref type to be serialized onto the stream 'out'.
    `void` | ObjID.`write(ObjectOutput out)` Marshals a binary representation of this `ObjID` to an `ObjectOutput` instance.

  - ### Uses of ObjectOutput in javax.activation

    Methods in javax.activation with parameters of type ObjectOutput
    Modifier and Type | Method and Description
    --- | ---
    `void` | MimeType.`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.

  - ### Uses of ObjectOutput in javax.management.loading

    Methods in javax.management.loading with parameters of type ObjectOutput
    Modifier and Type | Method and Description
    --- | ---
    `void` | MLet.`writeExternal(ObjectOutput out)` Save this MLet's contents to the given `ObjectOutput`.

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.