Java routines for dealing with byte and byte array data types