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