private int skipWhiteSpace ( byte [ ] data , int start ) { int index = start ; while ( index < data . length && ( ' ' == data [ index ] || ' ' == data [ index ] ) ) { index ++ ; } return index ; }
Skip whitespace found in the input data starting at the given index . It will return an index value that points to the first non - space byte found or end of data if it ran out .