public final class UtilsBytesAndBits
extends java.lang.Object
Class that provides methods to work and transforms bytes to bits and vice versa.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
bitToByteArray(java.util.BitSet bits)
Transforms the input bit set to a byte array.
|
static java.util.BitSet |
byteArrayToBits(byte[] byteArray)
Transforms the input byte array to a bit set.
|
static java.util.BitSet |
byteToBits(byte b)
Transforms the input byte to a bit set.
|
public static byte[] bitToByteArray(java.util.BitSet bits)
bits - Input bit set to transform.null if the input is null.public static java.util.BitSet byteToBits(byte b)
b - Input byte to transform.public static java.util.BitSet byteArrayToBits(byte[] byteArray)
byteArray - Input byte array to transform.null if the input is null.