question: read a distanceunit from a streaminput concode_field_sep DistanceUnit unit concode_elem_sep String[] names concode_elem_sep double value concode_elem_sep DistanceUnit DEFAULT concode_elem_sep double meters concode_field_sep double getEarthCircumference concode_elem_sep double toMeters concode_elem_sep double fromMeters concode_elem_sep void writeDistanceUnit concode_elem_sep double getEarthRadius concode_elem_sep DistanceUnit parseUnit concode_elem_sep double convert concode_elem_sep double convert concode_elem_sep Distance convert concode_elem_sep double parse concode_elem_sep double parse concode_elem_sep int compareTo concode_elem_sep Distance parseDistance concode_elem_sep Distance parseDistance concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep String toString concode_elem_sep String toString concode_elem_sep String toString concode_elem_sep DistanceUnit fromString concode_elem_sep double getDistancePerDegree
target: DistanceUnit function ( StreamInput arg0 ) { byte loc0 = arg0 . readByte ( ) ; if ( loc0 < 0 || loc0 >= values ( ) . length ) { throw new IllegalArgumentException ( "srini_string" + loc0 + "srini_string" ) ; } else { return values ( ) [ loc0 ] ; } }