read Byte from ByteBuffer - Java java.nio

Java examples for java.nio:ByteBuffer Read

Description

read Byte from ByteBuffer

Demo Code


//package com.java2s;
import java.nio.ByteBuffer;

public class Main {
    public static byte readByte(ByteBuffer buf, int i) {
        return buf.get(i);
    }//  w  w  w.j a v a 2 s  . c o m
}

Related Tutorials