xxl.io
Class Converter

java.lang.Object
  |
  +--xxl.io.Converter
Direct Known Subclasses:
AsciiKPEConverter, BooleanConverter, ByteConverter, CharacterConverter, ConvertableConverter, DoubleConverter, FloatConverter, IntegerConverter, LongConverter, ORTree.IndexEntryConverter, ORTree.NodeConverter, ShortConverter, StringBufferConverter, StringConverter

public abstract class Converter
extends java.lang.Object


Constructor Summary
Converter()
           
 
Method Summary
abstract  java.lang.Object read(java.io.DataInput dataInput, java.lang.Object object)
          Reads an Object from the given DataInput.
 int sizeOf(java.lang.Object o)
           
abstract  int write(java.io.DataOutput dataOutput, java.lang.Object object)
          Writes an Object to the given DataOutput.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

read

public abstract java.lang.Object read(java.io.DataInput dataInput,
                                      java.lang.Object object)
                               throws java.io.IOException
Reads an Object from the given DataInput.
Parameters:
object - the Object for which attributes are to be read. If object==null this method should create a new Object;
Returns:
the Object that was 'filled' with data from the given DataInput is returned.

write

public abstract int write(java.io.DataOutput dataOutput,
                          java.lang.Object object)
                   throws java.io.IOException
Writes an Object to the given DataOutput.
Returns:
returns the number of bytes that were written

sizeOf

public int sizeOf(java.lang.Object o)