public class CacheUtil extends java.lang.Object
| Constructor and Description |
|---|
CacheUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanUpDir(java.io.File dir)
recursively cleans up the work dir, deleting old files that are no longer
needed.
|
static void |
executeSQLCommand(java.lang.String sql)
execute a SQL command against the hsql database
|
static void |
writeInputStreamToOutputStream(java.io.InputStream is,
java.io.OutputStream os)
reads bytes from in InputStream and writes them to an OutputStream.
|
static void |
writeReaderToWriter(java.io.Reader r,
java.io.Writer w)
writes the bytes in the reader to the writer.
|
public CacheUtil()
public static void executeSQLCommand(java.lang.String sql) throws java.sql.SQLException, CacheException
java.sql.SQLExceptionCacheExceptionpublic static void cleanUpDir(java.io.File dir)
public static void writeInputStreamToOutputStream(java.io.InputStream is, java.io.OutputStream os) throws java.io.IOException
is - os - java.io.IOExceptionpublic static void writeReaderToWriter(java.io.Reader r, java.io.Writer w) throws java.io.IOException
r - the readerw - the writerjava.io.IOException