org.msgpack.template
Class TemplateReference<T>

java.lang.Object
  extended by org.msgpack.template.AbstractTemplate<T>
      extended by org.msgpack.template.TemplateReference<T>
All Implemented Interfaces:
Template<T>

public class TemplateReference<T>
extends AbstractTemplate<T>


Constructor Summary
TemplateReference(TemplateRegistry registry, Type targetType)
           
 
Method Summary
 T read(Unpacker u, T to)
           
 T read(Unpacker u, T to, boolean required)
           
 void write(Packer pk, T v)
           
 void write(Packer pk, T v, boolean required)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateReference

public TemplateReference(TemplateRegistry registry,
                         Type targetType)
Method Detail

write

public void write(Packer pk,
                  T v,
                  boolean required)
           throws IOException
Throws:
IOException

write

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

read

public T read(Unpacker u,
              T to,
              boolean required)
       throws IOException
Throws:
IOException

read

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


Copyright © 2011. All Rights Reserved.