Package alpine.common.util
Class ByteUtil
java.lang.Object
alpine.common.util.ByteUtil
A collection of functions that operate on bytes.
- Since:
- 1.0.0
- Author:
- Steve Springett
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]toBytes(char[] chars) Converts a char array to a byte array without the use of Strings.
-
Method Details
-
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
-