public class ALawDecoderUtil
extends java.lang.Object
Constructor and Description |
---|
ALawDecoderUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
aLawDecode(boolean bigEndian,
byte[] data,
int offset,
int length,
byte[] decoded) |
static short |
aLawDecode(byte alaw)
Decode one a-law byte
|
static void |
aLawDecodeBigEndian(byte[] data,
int offset,
int length,
byte[] decoded) |
static void |
aLawDecodeLittleEndian(byte[] data,
int offset,
int length,
byte[] decoded)
Decode an array of a-law encoded bytes
|
public static short aLawDecode(byte alaw)
alaw
- The encoded a-law bytepublic static void aLawDecode(boolean bigEndian, byte[] data, int offset, int length, byte[] decoded)
public static void aLawDecodeLittleEndian(byte[] data, int offset, int length, byte[] decoded)
data
- An array of a-law encoded bytesdecoded
- An array of bytes in Little-Endian format containing the results. Should be twice as big as data.public static void aLawDecodeBigEndian(byte[] data, int offset, int length, byte[] decoded)