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