| java.lang.Object com.thoughtworks.xstream.persistence.FileStreamStrategy
FileStreamStrategy | public class FileStreamStrategy implements StreamStrategy(Code) | | The default naming strategy is based on the key's toString method and escapes
non digit, non a-z, A-Z characters. In order to change the
escaping/unescaping algorithm, simply extend this class and rewrite its
getName/extractKey methods.
author: Guilherme Silveira |
Inner Class :class XmlMapEntriesIterator implements Iterator | |
FileStreamStrategy | public FileStreamStrategy(File baseDirectory)(Code) | | |
FileStreamStrategy | public FileStreamStrategy(File baseDirectory, XStream xstream)(Code) | | |
extractKey | protected String extractKey(String name)(Code) | | Given a filename, the unescape method returns the key which originated
it.
Parameters: name - the filename the original key |
getName | protected String getName(Object key)(Code) | | Given a key, the escape method returns the filename which shall be used.
Parameters: key - the key the desired and escaped filename |
|
|