Package alpine.util
Class ByteUtil
- java.lang.Object
-
- alpine.util.ByteUtil
-
public final class ByteUtil extends Object
A collection of functions that operate on bytes.- Since:
- 1.0.0
- Author:
- Steve Springett
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]toBytes(char[] chars)Converts a char array to a byte array without the use of Strings.
-
-
-
Method Detail
-
toBytes
public static byte[] toBytes(char[] chars)
Converts a char array to a byte array without the use of Strings. http://stackoverflow.com/questions/5513144/converting-char-to-byte- Parameters:
chars- the characters to convert- Returns:
- a byte array of the converted characters
- Since:
- 1.0.0
-
-