public static byte [ ] encodeDataList ( Object ... args ) { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; for ( Object arg : args ) { byte [ ] val = encodeValFor32Bits ( arg ) ; try { baos . write ( val ) ; } catch ( IOException e ) { throw new Error ( "Happen something that should never happen " , e ) ; } } return baos . toByteArray ( ) ; }
encode the values and concatenate together