Package com.yahoo.security
Class ArrayUtils
java.lang.Object
com.yahoo.security.ArrayUtils
A small collection of utils for working on arrays of bytes.
- Author:
- vekterli
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]concat(byte[]... bufs) Returns a new byte array that is the concatenation of all input byte arrays in input order.static StringfromUtf8Bytes(byte[] bytes) static Stringhex(byte[] bytes) static byte[]toUtf8Bytes(String str) static byte[]
-
Constructor Details
-
ArrayUtils
public ArrayUtils()
-
-
Method Details
-
concat
public static byte[] concat(byte[]... bufs) Returns a new byte array that is the concatenation of all input byte arrays in input order. E.g.concat("A", "BC", "DE", "F") => "ABCDEF" -
unhex
-
hex
-
toUtf8Bytes
-
fromUtf8Bytes
-