public static byte [ ] getAsByteArray ( TransactionChangesLog dataChangesLog ) throws IOException { ByteArrayOutputStream os = new ByteArrayOutputStream ( ) ; ObjectOutputStream oos = new ObjectOutputStream ( os ) ; oos . writeObject ( dataChangesLog ) ; byte [ ] bArray = os . toByteArray ( ) ; return bArray ; }
getAsByteArray . Make the array of bytes from ChangesLog .