| Modifier and Type | Class and Description |
|---|---|
| protected class | |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private final File | |
| private final String | |
| private final FilenameFilter | |
| private final transient XStream |
| Access | Constructor and Description |
|---|---|
| public | AbstractFilePersistenceStrategy(final File baseDirectory, final XStream xstream, final String encoding)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| protected abstract Object | Returns: the original keythe filename name)Given a filename, the unescape method returns the key which originated it. |
| public Object | |
| protected ConverterLookup | |
| private File | |
| protected Mapper | |
| protected abstract String | |
| protected boolean | |
| public Iterator | |
| public Object | put(final Object key, final Object value)
Implements com. |
| private Object | |
| public Object | |
| public int | |
| private void |
| baseDirectory | back to summary |
|---|---|
| private final File baseDirectory | |
| encoding | back to summary |
|---|---|
| private final String encoding | |
| filter | back to summary |
|---|---|
| private final FilenameFilter filter | |
| xstream | back to summary |
|---|---|
| private final transient XStream xstream | |
| AbstractFilePersistenceStrategy | back to summary |
|---|---|
| public AbstractFilePersistenceStrategy(final File baseDirectory, final XStream xstream, final String encoding) | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final Object key) | |
| extractKey | back to summary |
|---|---|
| protected abstract Object extractKey(String name) Given a filename, the unescape method returns the key which originated it. | |
| get | back to summary |
|---|---|
| public Object get(final Object key) Implements com. | |
| getConverterLookup | back to summary |
|---|---|
| protected ConverterLookup getConverterLookup() | |
| getFile | back to summary |
|---|---|
| private File getFile(final String filename) | |
| getMapper | back to summary |
|---|---|
| protected Mapper getMapper() | |
| getName | back to summary |
|---|---|
| protected abstract String getName(Object key) Given a key, the escape method returns the filename which shall be used. | |
| isValid | back to summary |
|---|---|
| protected boolean isValid(final File dir, final String name) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements com. | |
| put | back to summary |
|---|---|
| public Object put(final Object key, final Object value) Implements com. | |
| readFile | back to summary |
|---|---|
| private Object readFile(final File file) | |
| remove | back to summary |
|---|---|
| public Object remove(final Object key) Implements com. | |
| size | back to summary |
|---|---|
| public int size() Implements com. | |
| writeFile | back to summary |
|---|---|
| private void writeFile(final File file, final Object value) | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | accept(final File
the directory in which the file was found. dir, final String the name of the file. name)Implements java. |
| ValidFilenameFilter | back to summary |
|---|---|
| protected ValidFilenameFilter() | |
| accept | back to summary |
|---|---|
| public boolean accept(final File dir, final String name) Implements java. Doc from java. Tests if a specified file should be included in a file list. | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Object | |
| public void | remove()
Overrides default java. |
| current | back to summary |
|---|---|
| private File current | |
| files | back to summary |
|---|---|
| private final File[] files | |
| position | back to summary |
|---|---|
| private int position | |
| XmlMapEntriesIterator | back to summary |
|---|---|
| protected XmlMapEntriesIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Object next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the | |