Dear Team,
A very simple question. According to the documentation none of the classes in the Node hierarchy seems to implement the java.io.Serializable interface?
Is this correct?
Are there any plans to do so?
KR
Patrick
Dear Team,
A very simple question. According to the documentation none of the classes in the Node hierarchy seems to implement the java.io.Serializable interface?
Is this correct?
Are there any plans to do so?
KR
Patrick
Thanks for your inquiry. Could you please share some more detail about your use case what exact you want to achieve using Aspose.Words? We will then provide you more information on it.
Hi Tahir,
It is not about a specific usecase. It is just in general.
If wee have a java based web application and we want to store some information inside the httpsession, the objects to store need to b serializable.
Also if you want to offload stuff from memory to disk (using MapDB or so) again the object you want to offload need to be serializable.
Hence my quesiton
KR
Patrick
I am afraid, none of the classes in the Node hierarchy implement the java.io.Serializable interface. The same is also true for Aspose.Words for .NET.
Node hierarchy belongs to internal document model that is used only during conversions, creating or modifying a document. It is an intermediate model that also includes current local system and thread settings like date/time, timezone, locale, etc.
To properly save the state of a session, it is better to save the Document itself. Hope, this helps.
According to the documentation, Document itself is also not serializable