Here you can find the source of getFixedBytes(ByteBuffer buffer, int length)
public static byte[] getFixedBytes(ByteBuffer buffer, int length)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { public static byte[] getFixedBytes(ByteBuffer buffer, int length) { byte[] result = new byte[length]; buffer.get(result);/* w w w .j a va 2 s. com*/ return result; } }