150151152153154155156157158159160
// Serialize object final byte [] b1; { ByteArrayOutputStream bos = new ByteArrayOutputStream(); marshaller.marshall( bos, ksession, time ); b1 = bos.toByteArray(); bos.close(); }
179180181182183184185186187188189
// Reserialize and check that byte arrays are the same final byte[] b2; { ByteArrayOutputStream bos = new ByteArrayOutputStream(); marshaller.marshall( bos, ksession2, time ); b2 = bos.toByteArray(); bos.close(); }
165166167168169170171172173174175
194195196197198199200201202203204
7879808182838485868788
107108109110111112113114115116117
164165166167168169170171172173174
193194195196197198199200201202203
151152153154155156157158159160161
180181182183184185186187188189190