public ByteArrayInput reset ( int offset , int len ) { if ( len < 0 ) throw new IllegalArgumentException ( "length cannot be negative." ) ; this . offset = offset ; this . limit = offset + len ; return this ; }
Resets the offset and the limit of the internal buffer .