org.apache.jcs.engine
Class CacheUtils

java.lang.Object
  extended byorg.apache.jcs.engine.CacheUtils

public final class CacheUtils
extends java.lang.Object

This will be superceded by the new pluggable serializer infastructure. basic utility functions TODO move to util


Method Summary
static java.io.Serializable deserialize(byte[] buf)
          Returns the object deserialized from the given byte array.
static java.io.Serializable dup(java.io.Serializable obj)
          Returns a deeply cloned object.
static byte[] serialize(java.io.Serializable obj)
          Returns the serialized form of the given object in a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dup

public static java.io.Serializable dup(java.io.Serializable obj)
                                throws java.io.IOException
Returns a deeply cloned object.

Parameters:
obj -
Returns:
Throws:
java.io.IOException

serialize

public static byte[] serialize(java.io.Serializable obj)
                        throws java.io.IOException
Returns the serialized form of the given object in a byte array.

Parameters:
obj -
Returns:
Throws:
java.io.IOException

deserialize

public static java.io.Serializable deserialize(byte[] buf)
                                        throws java.io.IOException
Returns the object deserialized from the given byte array.

Parameters:
buf -
Returns:
Throws:
java.io.IOException


Copyright © 2002-2007 Apache Software Foundation. All Rights Reserved.