01: /*
02: * Copyright (C) 2006 Joe Walnes.
03: * Copyright (C) 2007 XStream Committers.
04: * All rights reserved.
05: *
06: * The software in this package is published under the terms of the BSD
07: * style license a copy of which has been included with this distribution in
08: * the LICENSE.txt file.
09: *
10: * Created on 13. June 2006 by Guilherme Silveira
11: */
12: package com.thoughtworks.xstream.persistence;
13:
14: import java.util.Iterator;
15:
16: /**
17: * A key to filename and vice-versa strategy interface.
18: *
19: * @author Guilherme Silveira
20: */
21: public interface StreamStrategy {
22:
23: Iterator iterator();
24:
25: int size();
26:
27: Object get(Object key);
28:
29: Object put(Object key, Object value);
30:
31: Object remove(Object key);
32:
33: }
|