I have a class which is storing several Documents that I would like to print out to a file using XMLEncoder. The goal is to be able to read all aspects of the Document back into the program. The output is simply a save file.
When I use XMLEncoder on my class I do get a reference to the property storing the Document, but it is obviously not storing the parameters and (indeed) when I load the file back up I do have no Document information.
Here is one of the nodes:
<object class="java.awt.font.TextAttribute" field="RUN_DIRECTION"/>
Could someone help me set the proper parameters so the Document to release all of it's secrets to the XML doc?
Many thanks for any help!