- version
- the protocol version to be used. Use a PROTOCOL_VERSION_x constant from java.io.ObjectStreamConstants.
Type Reason Java.Lang.IllegalArgumentException if an invalid version is specified. Java.IO.IOException if an I/O error occurs.
Sets the specified protocol version to be used by this stream.