Here you can find the source of setSByte(ByteBuffer buffer, byte data)
public static void setSByte(ByteBuffer buffer, byte data)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; public class Main { public static void setSByte(ByteBuffer buffer, byte data) { assert (buffer.capacity() - buffer.position() >= 1); buffer.put(data);/*from w w w . j av a 2 s .co m*/ } }