org.cipango.diameter.base
Class Common.EnumDataFormat<E extends java.lang.Enum<E>>

java.lang.Object
  extended by org.cipango.diameter.io.AbstractCodec<T>
      extended by org.cipango.diameter.DataFormat<E>
          extended by org.cipango.diameter.base.Common.EnumDataFormat<E>
All Implemented Interfaces:
org.cipango.diameter.io.DiameterCodec<E>
Enclosing class:
Common

public static class Common.EnumDataFormat<E extends java.lang.Enum<E>>
extends DataFormat<E>


Constructor Summary
Common.EnumDataFormat(java.lang.Class<E> clazz)
           
Common.EnumDataFormat(java.lang.Class<E> clazz, int offset)
           
 
Method Summary
 E decode(org.eclipse.jetty.io.Buffer buffer)
           
 org.eclipse.jetty.io.Buffer encode(org.eclipse.jetty.io.Buffer buffer, E value)
           
 
Methods inherited from class org.cipango.diameter.DataFormat
getName, toString
 
Methods inherited from class org.cipango.diameter.io.AbstractCodec
ensureSpace, getInt, pokeInt, putInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Common.EnumDataFormat

public Common.EnumDataFormat(java.lang.Class<E> clazz)

Common.EnumDataFormat

public Common.EnumDataFormat(java.lang.Class<E> clazz,
                             int offset)
Method Detail

decode

public E decode(org.eclipse.jetty.io.Buffer buffer)
                                   throws java.io.IOException
Throws:
java.io.IOException

encode

public org.eclipse.jetty.io.Buffer encode(org.eclipse.jetty.io.Buffer buffer,
                                          E value)
                                   throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.