xxl.io
Class ConvertableConverter

java.lang.Object
  |
  +--xxl.io.Converter
        |
        +--xxl.io.ConvertableConverter

public class ConvertableConverter
extends Converter

This class is a wrapper for Objects that implement the Convertable-interface.


Field Summary
protected  Function function
           
static ConvertableConverter PROTOTYPE
           
 
Constructor Summary
ConvertableConverter()
           
ConvertableConverter(Function function)
           
 
Method Summary
 java.lang.Object read(java.io.DataInput dataInput, java.lang.Object object)
           
 int sizeOf(java.lang.Object o)
           
 int write(java.io.DataOutput dout, java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOTYPE

public static final ConvertableConverter PROTOTYPE

function

protected Function function
Constructor Detail

ConvertableConverter

public ConvertableConverter()

ConvertableConverter

public ConvertableConverter(Function function)
Method Detail

read

public java.lang.Object read(java.io.DataInput dataInput,
                             java.lang.Object object)
                      throws java.io.IOException
Overrides:
read in class Converter

write

public int write(java.io.DataOutput dout,
                 java.lang.Object object)
          throws java.io.IOException
Overrides:
write in class Converter

sizeOf

public int sizeOf(java.lang.Object o)
Overrides:
sizeOf in class Converter