org.cipango.diameter.base
Class Common.EnumDataFormat<E extends java.lang.Enum<E>>
java.lang.Object
org.cipango.diameter.io.AbstractCodec<T>
org.cipango.diameter.DataFormat<E>
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>
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.io.AbstractCodec |
ensureSpace, getInt, pokeInt, putInt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Common.EnumDataFormat
public Common.EnumDataFormat(java.lang.Class<E> clazz)
Common.EnumDataFormat
public Common.EnumDataFormat(java.lang.Class<E> clazz,
int offset)
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.