org.msgpack.template
Class ObjectArrayTemplate

java.lang.Object
  extended by org.msgpack.template.AbstractTemplate
      extended by org.msgpack.template.ObjectArrayTemplate
All Implemented Interfaces:
Template

public class ObjectArrayTemplate
extends AbstractTemplate


Field Summary
protected  Class componentClass
           
protected  Template componentTemplate
           
 
Constructor Summary
ObjectArrayTemplate(Class componentClass, Template componentTemplate)
           
 
Method Summary
 Object read(Unpacker unpacker, Object to, boolean required)
           
 void write(Packer packer, Object v, 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
 

Field Detail

componentClass

protected Class componentClass

componentTemplate

protected Template componentTemplate
Constructor Detail

ObjectArrayTemplate

public ObjectArrayTemplate(Class componentClass,
                           Template componentTemplate)
Method Detail

write

public void write(Packer packer,
                  Object v,
                  boolean required)
           throws IOException
Throws:
IOException

read

public Object read(Unpacker unpacker,
                   Object to,
                   boolean required)
            throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.