public interface ValueHandlerMultiFormat extends ValueHandler
ValueHandler
can be casted into this interface
to access additional features.Modifier and Type | Method and Description |
---|---|
byte |
getMaximumStreamFormatVersion()
Get the maximal supported version for the value types, supported by
this value handler.
|
void |
writeValue(OutputStream output,
Serializable value,
byte version)
Write the value type to the output stream using the given format version.
|
getRMIRepositoryID, getRunTimeCodeBase, isCustomMarshaled, readValue, writeReplace, writeValue
byte getMaximumStreamFormatVersion()
void writeValue(OutputStream output, Serializable value, byte version)
ValueHandler.writeValue(org.omg.CORBA.portable.OutputStream, java.io.Serializable)
always uses the version 1.output
- the stream, where the value should be written, must implement
ValueOutputStream
.value
- the value that should be written.version
- the version of the format that must be used to write the
value.BAD_PARAM
- if the version number is less than 1 or greater than the
maximal supported version.