org.fusesource.hawtdb.api
Class CodecPagedAccessor<T>

java.lang.Object
  extended by org.fusesource.hawtdb.api.AbstractStreamPagedAccessor<T>
      extended by org.fusesource.hawtdb.api.CodecPagedAccessor<T>
All Implemented Interfaces:
PagedAccessor<T>

public class CodecPagedAccessor<T>
extends AbstractStreamPagedAccessor<T>

A EncoderDecoder which uses a Marshaller to encode/decode the values.

Author:
Hiram Chirino

Constructor Summary
CodecPagedAccessor(org.fusesource.hawtbuf.codec.Codec<T> codec)
           
 
Method Summary
protected  T decode(Paged paged, java.io.DataInputStream is)
           
protected  void encode(Paged paged, java.io.DataOutputStream os, T data)
           
 
Methods inherited from class org.fusesource.hawtdb.api.AbstractStreamPagedAccessor
load, pagesLinked, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodecPagedAccessor

public CodecPagedAccessor(org.fusesource.hawtbuf.codec.Codec<T> codec)
Method Detail

encode

protected void encode(Paged paged,
                      java.io.DataOutputStream os,
                      T data)
               throws java.io.IOException
Specified by:
encode in class AbstractStreamPagedAccessor<T>
Throws:
java.io.IOException

decode

protected T decode(Paged paged,
                   java.io.DataInputStream is)
            throws java.io.IOException
Specified by:
decode in class AbstractStreamPagedAccessor<T>
Throws:
java.io.IOException


Copyright © 2009-2011 FuseSource, Corp.. All Rights Reserved.