Here you can find the source of clearAll(ByteBuffer[] buffers)
Parameter | Description |
---|---|
NullPointerException | if <tt>buffer</tt> or any of its elements is <tt>null</tt> |
public static void clearAll(ByteBuffer[] buffers)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { /**/*from ww w.java 2 s . c om*/ * Convenience method to clear array of <tt>buffers</tt>. * * @throws NullPointerException * if <tt>buffer</tt> or any of its elements is <tt>null</tt> */ public static void clearAll(ByteBuffer[] buffers) { for (int i = buffers.length; i-- > 0;) buffers[i].clear(); } }