Here you can find the source of clear(ByteBuffer[] buffers)
public static final void clear(ByteBuffer[] buffers)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; public class Main { public static final void clear(ByteBuffer[] buffers) { if (buffers == null) { return; }/*from ww w.j av a 2 s. c om*/ for (ByteBuffer buffer : buffers) { if (buffer != null) { buffer.clear(); } } } }