luky.util
Class PersistentFixedSizeStringStorage
java.lang.Object
luky.util.FixedSizeStringStorage
luky.util.PersistentFixedSizeStringStorage
public class PersistentFixedSizeStringStorage
- extends FixedSizeStringStorage
A linked list of fixed size. Adding an element beyond the size will cause
the deletion of the oldest element. The contents is persistant by use
of circulair files
- 1.00 - initial version
- 1.01 - closing files, memory leak
- Version:
- 1.01
- Author:
- Chris Lukassen
-

Method Summary |
void |
add(String line)
adds an element to the list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistentFixedSizeStringStorage
public PersistentFixedSizeStringStorage(int size,
String oldestItemsFile,
String newestItemsFile)
- Constructor size must be 1 or greater
add
public void add(String line)
- adds an element to the list
- Overrides:
add
in class FixedSizeStringStorage