private static void skipControlCharacters ( ByteBuf undecodedChunk ) { if ( ! undecodedChunk . hasArray ( ) ) { try { skipControlCharactersStandard ( undecodedChunk ) ; } catch ( IndexOutOfBoundsException e1 ) { throw new NotEnoughDataDecoderException ( e1 ) ; } return ; } SeekAheadOptimize sao = new SeekAheadOptimize ( undecodedChunk ) ; while ( sao . pos < sao . limit ) { char c = ( char ) ( sao . bytes [ sao . pos ++ ] & 0xFF ) ; if ( ! Character . isISOControl ( c ) && ! Character . isWhitespace ( c ) ) { sao . setReadPosition ( 1 ) ; return ; } } throw new NotEnoughDataDecoderException ( "Access out of bounds" ) ; }
Skip control Characters