public static LinkedBuffer allocate ( int size , LinkedBuffer previous ) { if ( size < MIN_BUFFER_SIZE ) throw new IllegalArgumentException ( MIN_BUFFER_SIZE + " is the minimum buffer size." ) ; return new LinkedBuffer ( size , previous ) ; }
Allocates a new buffer with the specified size and appends it to the previous buffer .