private void exitRead ( long consumed ) throws IOException { long oldVal = state ; if ( consumed == - 1 ) { if ( anyAreSet ( oldVal , MASK_COUNT ) ) { invokeFinishListener ( ) ; state &= ~ MASK_COUNT ; throw UndertowMessages . MESSAGES . couldNotReadContentLengthData ( ) ; } return ; } long newVal = oldVal - consumed ; state = newVal ; }
Exit a read method .