public class FileStreamStrategy extends Object implements StreamStrategy
| Constructor and Description |
|---|
FileStreamStrategy(File baseDirectory) |
FileStreamStrategy(File baseDirectory,
XStream xstream) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
protected String |
escape(String key) |
protected String |
extractKey(String name)
Given a filename, the unescape method returns the key which originated
it.
|
Object |
get(Object key) |
protected String |
getName(Object key)
Given a key, the escape method returns the filename which shall be used.
|
protected boolean |
isValid(File dir,
String name) |
Iterator |
iterator() |
Object |
put(Object key,
Object value) |
Object |
remove(Object key) |
int |
size() |
protected String |
unescape(String name) |
public FileStreamStrategy(File baseDirectory)
protected String extractKey(String name)
name - the filenameprotected String getName(Object key)
key - the keypublic Object put(Object key, Object value)
put in interface StreamStrategypublic Iterator iterator()
iterator in interface StreamStrategypublic int size()
size in interface StreamStrategypublic boolean containsKey(Object key)
public Object get(Object key)
get in interface StreamStrategypublic Object remove(Object key)
remove in interface StreamStrategyCopyright © 2021 Internet2. All rights reserved.