Here you can find the source of toByteArrayShifted(int... arguments)
public static byte[] toByteArrayShifted(int... arguments)
//package com.java2s; /**//w ww . j a va 2 s. c om * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author Jay Codec * */ public class Main { public static byte[] toByteArrayShifted(int... arguments) { byte[] result = new byte[arguments.length]; for (int i = 0; i < arguments.length; i++) result[i] = (byte) (arguments[i] - 128); return result; } }