Of course. B4XSerializtor is cross platform. The B4J (Java) implementation is available in jRandomAccessFile.
Why are you developing with Java? It will be easier to use B4J.
Thanks for your help so far, I have managed to solve this issueI'm sorry but I cannot help you with non-B4X development questions.