#NEWLINE# def encode_to_stream( self , value , out , nested ) : #NEWLINE# #INDENT# values = self . _extract_components ( value ) #NEWLINE# if ( len ( self . _coder_impls ) != len ( values ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Number of components does not match number of coders.' ) #NEWLINE# #UNINDENT# for i in range ( 0 , len ( self . _coder_impls ) ) : #NEWLINE# #INDENT# c = self . _coder_impls [ i ] #NEWLINE# c . encode_to_stream ( values [ i ] , nested , True )