Here you can find the source of writeBER32(ByteBuffer buffer, int value)
public static void writeBER32(ByteBuffer buffer, int value)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; public class Main { public static void writeBER32(ByteBuffer buffer, int value) { buffer.put((byte) ((value >> 21) | 0x80)); buffer.put((byte) ((value >> 14) | 0x80)); buffer.put((byte) ((value >> 7) | 0x80)); buffer.put((byte) (value & 0x7F)); }/* ww w.ja va 2s . c o m*/ }