Package java.io

Interface Externalizable

  • All Superinterfaces:
    Serializable

    public interface Externalizable
    extends Serializable
    Defines an interface for classes that want to be serializable, but have their own binary representation.
    • Method Detail

      • writeExternal

        void writeExternal​(ObjectOutput output)
                    throws IOException
        Writes the receiver to the ObjectOutput output.
        Parameters:
        output - the ObjectOutput to write the object to.
        Throws:
        IOException - if an error occurs attempting to write to output.