Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Apache Digester to serialize the definition of a class

 
Jack Silver
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to use Digester to say Serialize and Deserialize into XML the definition of a class.
I need to store formulas in a static class and I thought perhaps somehow Digester will allow me to do this??? Does any have experiences with Digester or its successor for the purpose of
building class from the XML specifically I want to represent classes in XML so when loaded create workable classes? Any idea how to do this.
Already tried the built in java XMLEncoder but that did not work with details presented from a pre-defined class e.g

Using:
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Digester reads XML files and populates existing classes with the values contained in the file, nothing more and nothing less. It can't create classes you don't already have, and it also has no facilities for writing out XML or anything else.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic