#NEWLINE# @ classmethod #NEWLINE# def from_stream( cls , r ) : #NEWLINE# #INDENT# size = r . get_int ( ) #NEWLINE# collation = r . get_collation ( ) #NEWLINE# num_parts = r . get_byte ( ) #NEWLINE# parts = [ ] #NEWLINE# for _ in range ( size ) : #NEWLINE# #INDENT# parts . append ( r . read_ucs2 ( r . get_smallint ( ) ) ) #NEWLINE# #UNINDENT# return cls ( size , parts , collation )