private EventRecord readGroup ( EventRecord er , StringBuffer sb , String prefix ) { Pattern pattern = Pattern . compile ( ".*(" + prefix + "\\s*\\d*)\\s*:\\s*(\\+?\\d+)" , Pattern . MULTILINE ) ; Matcher matcher = pattern . matcher ( sb ) ; while ( matcher . find ( ) ) er . set ( matcher . group ( 1 ) , matcher . group ( 2 ) ) ; return er ; }
Reads and parses lines that provide the output of a group of sensors with the same functionality .