public ShortBuffer put(short[] src,int srcOffset,int shortCount){
  Arrays.checkOffsetAndCount(src.length,srcOffset,shortCount);
  if (shortCount > remaining()) {
    throw new BufferOverflowException();
  }
  for (int i=srcOffset; i < srcOffset + shortCount; ++i) {
    put(src[i]);
  }
  return this;
}

public ShortBuffer put ( short [ ] src , int srcOffset , int shortCount ) { Arrays . checkOffsetAndCount ( src . length , srcOffset , shortCount ) ; if ( shortCount > remaining ( ) ) { throw new BufferOverflowException ( ) ; } for ( int i = srcOffset ; i < srcOffset + shortCount ; ++ i ) { put ( src [ i ] ) ; } return this ; }
writes shorts from the given short array , starting from the specified offset , to the current position and increases the position by the number of shorts written .
