org.gudy.azureus2.pluginsimpl.local.ddb
Class DDBaseHelpers

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.ddb.DDBaseHelpers

public class DDBaseHelpers
extends Object

Author:
parg

Constructor Summary
DDBaseHelpers()
           
 
Method Summary
protected static Object decode(Class target, byte[] data)
           
protected static byte[] encode(Object obj)
           
protected static HashWrapper getKey(Class c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDBaseHelpers

public DDBaseHelpers()
Method Detail

encode

protected static byte[] encode(Object obj)
                        throws DistributedDatabaseException
Throws:
DistributedDatabaseException

decode

protected static Object decode(Class target,
                               byte[] data)
                        throws DistributedDatabaseException
Throws:
DistributedDatabaseException

getKey

protected static HashWrapper getKey(Class c)
                             throws DistributedDatabaseException
Throws:
DistributedDatabaseException