Skip to content

Commit

Permalink
*) minor changes
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6536 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
low012 committed Dec 28, 2009
1 parent e8fb332 commit b75547f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/de/anomic/http/client/Cache.java
Expand Up @@ -65,7 +65,7 @@ public final class Cache {
private static String prefix;
public static final Log log = new Log("HTCACHE");

public static void init(final File htCachePath, String peerSalt, final long CacheSizeMax) {
public static void init(final File htCachePath, final String peerSalt, final long CacheSizeMax) {

cachePath = htCachePath;
maxCacheSize = CacheSizeMax;
Expand Down Expand Up @@ -111,7 +111,7 @@ public static void close() {
fileDB.close(true);
}

public static void store(DigestURI url, final ResponseHeader responseHeader, byte[] file) throws IOException {
public static void store(final DigestURI url, final ResponseHeader responseHeader, final byte[] file) throws IOException {
if (responseHeader == null) throw new IOException("Cache.store of url " + url.toString() + " not possible: responseHeader == null");
if (file == null) throw new IOException("Cache.store of url " + url.toString() + " not possible: file == null");

Expand Down Expand Up @@ -205,7 +205,7 @@ public static InputStream getContentStream(final DigestURI url) throws IOExcepti
/**
* Returns the content of a cached resource as byte[]
* @param url the requested resource
* @return the resource content as byte[]. In no data
* @return the resource content as byte[]. If no data
* is available or the cached file is not readable, <code>null</code>
* is returned.
* @throws IOException
Expand Down Expand Up @@ -253,7 +253,7 @@ public static long getResourceContentLength(final DigestURI url) {
* @param url
* @throws IOException
*/
public static void delete(DigestURI url) throws IOException {
public static void delete(final DigestURI url) throws IOException {
responseHeaderDB.remove(url.hash());
fileDB.remove(url.hash().getBytes("UTF-8"));
}
Expand Down

0 comments on commit b75547f

Please sign in to comment.