nl.weeaboo.lua2.io.IWriteReplaceSerializable Maven / Gradle / Ivy
package nl.weeaboo.lua2.io;
import java.io.ObjectOutputStream;
import java.io.ObjectStreamException;
import java.io.Serializable;
/**
* This interface declares the {@link #writeReplace()} method with the proper signature for use with Java serialization.
*
* @see Serializable
*/
public interface IWriteReplaceSerializable extends Serializable {
/**
* This is the interface version of the magic 'writeReplace' method used by Java's {@link ObjectOutputStream}.
*
* @throws ObjectStreamException If the object can't be written.
*/
Object writeReplace() throws ObjectStreamException;
}