Jaseto
a <Java Serialization Toolkit>




Warning: Undefined array key "page" in /data/www/hogie/public_html/jaseto/index.php on line 48
Description

Jaseto is a Java library enabling the description of Java objects in XML, and conversely, the creation of Java object from their XML description. This process is commonly referred to as (de)serialization or (un)marshalling. It is usually employed at making the data persistent across executions, by storing the XML text on disk, or into XML databases.

Other libraries such as XStream, Castor, and JAXB are other viable solutions. Compared to these, Jaseto offers:

  • a cleaner and shorter source code: its core consists of about 400 lines;
  • better performance: its proves 10x faster that Castor and XStream;
  • a solution to some of their limitations: no need to know in advance the type of an object to be deserialized, no need to resort to annotations, no need to follow the JavaBean spec, etc.

How does it work?

In order to achieve this, Jaseto makes an extensive use of class introspection. When scanning a class, it only considers instance fields. Transient/static fields and methods are ignored.