public static int parseRMICCompatible ( String options ) // PM46698 { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "parseRMICCompatible: " + options ) ; int flags ; if ( options == null ) { flags = RMIC_COMPATIBLE_DEFAULT ; } else if ( options . equals ( "none" ) ) { flags = 0 ; } else if ( options . isEmpty ( ) || options . equals ( "all" ) ) { flags = - 1 ; } else { flags = 0 ; for ( String option : options . split ( "," ) ) { if ( option . equals ( "values" ) ) { flags |= RMIC_COMPATIBLE_VALUES ; } else if ( option . equals ( "exceptions" ) ) // PM94096 { flags |= RMIC_COMPATIBLE_EXCEPTIONS ; } else { throw new IllegalArgumentException ( "unknown RMIC compatibility option: " + option ) ; } } } if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "parseRMICCompatible: " + Integer . toHexString ( flags ) ) ; return flags ; }
Parse an rmic compatibility options string .