-// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the Apache Public Source License 2.0 ("the License").
+// You may not use this file except in compliance with the License.
+
* be totally independent of the others (ie separate stream position
* and state) although they draw from the same data source.
*/
* be totally independent of the others (ie separate stream position
* and state) although they draw from the same data source.
*/
public static class NotCacheableException extends Exception { }
// streams are "sealed" by default to prevent accidental object leakage
public static class NotCacheableException extends Exception { }
// streams are "sealed" by default to prevent accidental object leakage
protected Object _get(Object key) { return null; }
public final Object get(Object key) {
Object ret = getCache.get(key);
protected Object _get(Object key) { return null; }
public final Object get(Object key) {
Object ret = getCache.get(key);
//public String toString() { return "Stream.HTTP:" + url; }
public HTTP(String url) { while (url.endsWith("/")) url = url.substring(0, url.length() - 1); this.url = url; }
public Object _get(Object key) { return new HTTP(url + "/" + (String)key); }
//public String toString() { return "Stream.HTTP:" + url; }
public HTTP(String url) { while (url.endsWith("/")) url = url.substring(0, url.length() - 1); this.url = url; }
public Object _get(Object key) { return new HTTP(url + "/" + (String)key); }