com.croftsoft.core.util.cache
Class CacheLib

java.lang.Object
  extended by com.croftsoft.core.util.cache.CacheLib

public class CacheLib
extends Object

Static methods to support Cache implementations.

Version:
1999-04-20
See Also:
Cache
Author:
David Wallace Croft

Method Summary
static String retrieveString(Cache cache, Id id)
           
static Id storeString(Cache cache, String s)
          Tests a Cache implementation.
static byte[] toByteArray(InputStream in)
           
static InputStream toInputStream(byte[] byteArray)
           
static InputStream toInputStream(String s)
           
static String toString(InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

storeString

public static Id storeString(Cache cache,
                             String s)
                      throws IOException
Tests a Cache implementation.

Parameters:
cache - An instance of a Cache to be tested.
Throws:
IOException

retrieveString

public static String retrieveString(Cache cache,
                                    Id id)
                             throws IOException
Throws:
IOException

toByteArray

public static byte[] toByteArray(InputStream in)
                          throws IOException
Throws:
IOException

toInputStream

public static InputStream toInputStream(String s)

toInputStream

public static InputStream toInputStream(byte[] byteArray)

toString

public static String toString(InputStream in)
                       throws IOException
Throws:
IOException

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)