Here you can find the source of dumpFirst1024Byte(byte[] data)
Parameter | Description |
---|---|
data | a parameter |
public static byte[] dumpFirst1024Byte(byte[] data)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w ww . ja va 2 s . c o m*/ * Dump the first 1024 byte of an byte-array. Approximation to remove a * Riff-wave header. * * @param data * @return data - first 1024 byte or empty array if was shorter than 1024 * byte. */ public static byte[] dumpFirst1024Byte(byte[] data) { byte[] ret = new byte[0]; if (data.length >= 1024) { ret = new byte[data.length - 1024]; System.arraycopy(data, 1024, ret, 0, data.length - 1024); } return ret; } }