Generally passed as an argument object into a method. The method takes responsibility of writing into the internal byte array and increasing its size when necessary.
Byte array wrapper. It can be used as a HashMap key. It is assumed that array is never changes. (Yep, we could copy array in constructor to enforce that, we just don't want to use redundant space) TODO: isn't there some existing class for that?
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.