com.fernsroth.easyio.field.handler
Class FieldUINT8Handler

java.lang.Object
  extended by com.fernsroth.easyio.field.handler.FieldNumberHandlerBase
      extended by com.fernsroth.easyio.field.handler.FieldUINT8Handler
All Implemented Interfaces:
FieldHandler

public class FieldUINT8Handler
extends FieldNumberHandlerBase

Author:
Joseph M. Ferner (Near Infinity Corporation)

Constructor Summary
FieldUINT8Handler()
          constructor.
 
Method Summary
protected  java.lang.Object createZero()
          creates an object with the value of zero.
protected  java.lang.annotation.Annotation getAnnotation(java.lang.reflect.Field field)
          
protected  java.lang.Object read(EasyIOInputStream in)
          read data from the input stream.
protected  void write(EasyIOOutputStream out, java.lang.Object val)
          writes a value to the output stream.
 
Methods inherited from class com.fernsroth.easyio.field.handler.FieldNumberHandlerBase
getFieldBits, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldUINT8Handler

public FieldUINT8Handler()
constructor.

Method Detail

getAnnotation

protected java.lang.annotation.Annotation getAnnotation(java.lang.reflect.Field field)

Specified by:
getAnnotation in class FieldNumberHandlerBase
Parameters:
field - the field to get the annotation from.
Returns:
the retrieved annotation.

read

protected java.lang.Object read(EasyIOInputStream in)
                         throws java.io.IOException
read data from the input stream.

Specified by:
read in class FieldNumberHandlerBase
Parameters:
in - the input stream to read from.
Returns:
the read object.
Throws:
java.io.IOException

createZero

protected java.lang.Object createZero()
creates an object with the value of zero.

Specified by:
createZero in class FieldNumberHandlerBase
Returns:
the new zero object.

write

protected void write(EasyIOOutputStream out,
                     java.lang.Object val)
              throws java.io.IOException
writes a value to the output stream.

Specified by:
write in class FieldNumberHandlerBase
Parameters:
out - the output stream to write to.
val - the value to write.
Throws:
java.io.IOException


Copyright © 2006 null. All Rights Reserved.