Mega Code Archive

 
Categories / Java Tutorial / Collections
 

Puts the entire source array in the target array at offset offset

/*  * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.  *  * Licensed under the Aduna BSD-style license.  */ public class Utils {   /**    * Puts the entire <tt>source</tt> array in the <tt>target</tt>    * array at offset <tt>offset</tt>.    */   public static void put(byte[] source, byte[] target, int offset) {     System.arraycopy(source, 0, target, offset, source.length);   } }