decode static method
Implementation
static XdrIPAddrType decode(XdrDataInputStream stream) {
int value = stream.readInt();
switch (value) {
case 0:
return IPv4;
case 1:
return IPv6;
default:
throw Exception("Unknown enum value: $value");
}
}