public class WebpipeCache
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
cacheDir |
private java.nio.charset.Charset |
UTF8 |
| Constructor and Description |
|---|
WebpipeCache(java.io.File cacheDir) |
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
computeSHA1(Webpipe webpipe) |
java.util.List<java.lang.String> |
getContents(Webpipe pipe) |
private byte[] |
readFile(java.io.File file) |
void |
storeContents(Webpipe webpipe,
java.util.List<java.lang.String> contents) |
public java.util.List<java.lang.String> getContents(Webpipe pipe) throws java.io.IOException
java.io.IOExceptionprivate byte[] readFile(java.io.File file)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOExceptionjava.io.FileNotFoundExceptionpublic void storeContents(Webpipe webpipe, java.util.List<java.lang.String> contents) throws java.io.IOException
java.io.IOExceptionprivate byte[] computeSHA1(Webpipe webpipe) throws java.io.IOException
java.io.IOException