org.msgpack.template
Class AbstractTemplate<T>

java.lang.Object
  extended by org.msgpack.template.AbstractTemplate<T>
All Implemented Interfaces:
Template<T>
Direct Known Subclasses:
AnyTemplate, BigDecimalTemplate, BigIntegerTemplate, BooleanArrayTemplate, BooleanTemplate, ByteArrayTemplate, ByteBufferTemplate, ByteTemplate, CharacterTemplate, CollectionTemplate, DateTemplate, DoubleArrayTemplate, DoubleTemplate, FloatArrayTemplate, FloatTemplate, IntegerArrayTemplate, IntegerTemplate, JavassistTemplateBuilder.JavassistTemplate, ListTemplate, LongArrayTemplate, LongTemplate, MapTemplate, MessagePackableTemplate, NotNullableTemplate, ObjectArrayTemplate, OrdinalEnumTemplate, ReflectionTemplateBuilder.ReflectionClassTemplate, ReflectionTemplateBuilder.ReflectionFieldTemplate, ShortArrayTemplate, ShortTemplate, StringTemplate, TemplateReference, ValueTemplate

public abstract class AbstractTemplate<T>
extends Object
implements Template<T>


Constructor Summary
AbstractTemplate()
           
 
Method Summary
 T read(Unpacker u, T to)
           
 void write(Packer pk, T v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.msgpack.template.Template
read, write
 

Constructor Detail

AbstractTemplate

public AbstractTemplate()
Method Detail

write

public void write(Packer pk,
                  T v)
           throws IOException
Specified by:
write in interface Template<T>
Throws:
IOException

read

public T read(Unpacker u,
              T to)
       throws IOException
Specified by:
read in interface Template<T>
Throws:
IOException


Copyright © 2011. All Rights Reserved.