com.bubble.serializer
Class Generator

java.lang.Object
  extended bycom.bubble.serializer.Generator

public class Generator
extends java.lang.Object

Generates customized code for serialization. This is where the magic happens.

The generator inspects classes with reflection to generate code that performs serialization of fields in the most direct way possible. For non-private fields, the generated code will access fields directly, not through reflection.

Author:
Leonardo "Bubble" Mesquita

Constructor Summary
Generator()
           
 
Method Summary
 Deserializer getDeserializer(java.lang.Class clazz)
           
 Deserializer getDeserializer(java.lang.String className)
           
 Serializer getSerializer(java.lang.Class clazz)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator

public Generator()
Method Detail

getSerializer

public Serializer getSerializer(java.lang.Class clazz)

getDeserializer

public Deserializer getDeserializer(java.lang.String className)
                             throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

getDeserializer

public Deserializer getDeserializer(java.lang.Class clazz)


Faster Java Serialization.
Copyright (C) 2006 Leonardo Bubble Mesquita.