public void limit ( final int limit ) { if ( limit < 0 || limit >= buffer . capacity ( ) ) { throw new IllegalArgumentException ( "limit outside range: capacity=" + buffer . capacity ( ) + " limit=" + limit ) ; } this . limit = limit ; }
Set this limit for this buffer as the position at which the next append operation will occur .