com.croftsoft.core.util.cache
Class CacheLib
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 Core Javadoc (2008-09-28 20:58:02)