public static void readOrdinals ( DataInputStream dis , HollowTypeStateListener [ ] listeners ) throws IOException { int numLongs = dis . readInt ( ) ; int currentOrdinal = 0 ; for ( int i = 0 ; i < numLongs ; i ++ ) { long l = dis . readLong ( ) ; notifyPopulatedOrdinals ( l , currentOrdinal , listeners ) ; currentOrdinal += 64 ; } }
Read populated ordinals as a bit set from a stream and notify a listener for each populated ordinal .