org.msgpack.template
Class NotNullableTemplate<T>

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

public class NotNullableTemplate<T>
extends AbstractTemplate<T>


Constructor Summary
NotNullableTemplate(Template<T> elementTemplate)
           
 
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

NotNullableTemplate

public NotNullableTemplate(Template<T> elementTemplate)
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.