com.fernsroth.easyio
Interface FieldHandler

All Known Implementing Classes:
FieldINT64Handler, FieldNumberHandlerBase, FieldUINT16Handler, FieldUINT32Handler, FieldUINT64Handler, FieldUINT8Handler

public interface FieldHandler

Author:
Joseph M. Ferner (Near Infinity Corporation)

Method Summary
 void read(EasyIOInputStream in, java.lang.Object obj, java.util.Queue<java.lang.reflect.Field> fieldsQueue)
          reads a field into an object.
 void write(EasyIOOutputStream out, java.lang.Object obj, java.util.Queue<java.lang.reflect.Field> fieldsQueue)
          writes a field into an output stream.
 

Method Detail

read

void read(EasyIOInputStream in,
          java.lang.Object obj,
          java.util.Queue<java.lang.reflect.Field> fieldsQueue)
          throws EasyIOException,
                 java.io.IOException
reads a field into an object. It is the responsibility of this function to remove read fields from the fieldsQueue.

Parameters:
in - the input stream to read from.
obj - the object to populate.
fieldsQueue - the queue of all fields (field, is head of queue).
Throws:
EasyIOException
java.io.IOException

write

void write(EasyIOOutputStream out,
           java.lang.Object obj,
           java.util.Queue<java.lang.reflect.Field> fieldsQueue)
           throws EasyIOException,
                  java.io.IOException
writes a field into an output stream. It is the responsibility of this function to remove written fields from the fieldsQueue.

Parameters:
out - the output stream to write the field to.
obj - the object to read from.
fieldsQueue - the queue of fields to read (field, is head of queue).
Throws:
EasyIOException
java.io.IOException


Copyright © 2006 null. All Rights Reserved.