static public int skipWhiteSpace ( byte [ ] data , int start ) { int index = start + 1 ; while ( index < data . length && BNFHeaders . SPACE == data [ index ] ) { index ++ ; } return index ; }
Simple method to skip past any space characters from the starting index onwards until it finds a non - space character or the end of the buffer . Returns the index it stopped on .