I've created a relatively simple example trying to understand how this is SUPPOSED to work...
I've created a simple user object wiht name email and age on it. I used object writer to write out the stream to disk, then when to read it back out as the original object and get:
org.ubjson.io.UBJFormatException: Encountered an unknown type marker of byte value 5 (char='�') at stream position 2.
at org.ubjson.io.UBJInputStreamParser.nextType(UBJInputStreamParser.java:121)
at org.ubjson.io.reflect.ObjectReader.readObject(ObjectReader.java:51)