org.msgpack.template
Class ListTemplate<E>

java.lang.Object
  extended by org.msgpack.template.AbstractTemplate<List<E>>
      extended by org.msgpack.template.ListTemplate<E>
All Implemented Interfaces:
Template<List<E>>

public class ListTemplate<E>
extends AbstractTemplate<List<E>>


Constructor Summary
ListTemplate(Template<E> elementTemplate)
           
 
Method Summary
 List<E> read(Unpacker u, List<E> to, boolean required)
           
 void write(Packer pk, List<E> target, boolean required)
           
 
Methods inherited from class org.msgpack.template.AbstractTemplate
read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListTemplate

public ListTemplate(Template<E> elementTemplate)
Method Detail

write

public void write(Packer pk,
                  List<E> target,
                  boolean required)
           throws IOException
Throws:
IOException

read

public List<E> read(Unpacker u,
                    List<E> to,
                    boolean required)
             throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.