System.out.println(bais.available());
System.out.println(j.getSpouse().getName());
}
private static void test2() throws Exception {
C c = new C();
c.setAny(new String[][] {
null,
new String[0],
new String[] { "A" },
new String[] { "B", "C" },
});
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Encoder enc = new Encoder(baos);
enc.encode(c);
enc.close();
System.out.println("Size = " + baos.size());
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
Decoder dec = new Decoder(bais);
C c2 = dec.decode();
System.out.println(Arrays.deepToString((Object[] )c2.getAny()));
dec.close();
System.out.println("Available = " + bais.available());
}