static void receiveSchemas ( CommsConnection conn , byte [ ] data ) throws JMFException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "receiveSchemas" , conn ) ; final SchemaSet ids ; try { ids = ( SchemaSet ) conn . getSchemaSet ( ) ; if ( ids == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "getSchemaSet() returned null for CommsConnection: " + conn ) ; throw new IllegalStateException ( "CommsConnection returned null SchemaSet" ) ; } } catch ( SIConnectionDroppedException e ) { // No FFDC code needed - this is not an unexpected condition when a connection fails during start of a new conversation on the connection throw new IllegalStateException ( "CommsConnection threw exception" , e ) ; } Coder coder = new Coder ( data ) ; addSchemaDefinitions ( ids , coder ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "receiveSchemas" ) ; }
Called when schema definitions are received on a connection