public static NetFlowV9Header parseHeader ( ByteBuf bb ) { final int version = bb . readUnsignedShort ( ) ; if ( version != 9 ) { throw new InvalidFlowVersionException ( version ) ; } final int count = bb . readUnsignedShort ( ) ; final long sysUptime = bb . readUnsignedInt ( ) ; final long unixSecs = bb . readUnsignedInt ( ) ; final long sequence = bb . readUnsignedInt ( ) ; final long sourceId = bb . readUnsignedInt ( ) ; return NetFlowV9Header . create ( version , count , sysUptime , unixSecs , sequence , sourceId ) ; }
Flow Header Format