Here you can find the source of createIconsFromBuffers(List
public static ByteBuffer[] createIconsFromBuffers(List<ByteBuffer> byteBuffers) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.nio.ByteBuffer; import java.util.List; public class Main { public static ByteBuffer[] createIconsFromBuffers(List<ByteBuffer> byteBuffers) throws IOException { ByteBuffer[] icons = new ByteBuffer[byteBuffers.size()]; for (int i = 0; i < byteBuffers.size(); i++) { icons[i] = byteBuffers.get(i); }/*ww w . j av a 2s . c o m*/ return icons; } }