Luky Library - 4.1.1 (20061117-1148)

luky.util
Class PersistentFixedSizeStringStorage

java.lang.Object
  extended by luky.util.FixedSizeStringStorage
      extended by 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

Version:
1.01
Author:
Chris Lukassen
 

Field Summary
 
Fields inherited from class luky.util.FixedSizeStringStorage
list, maxSize
 
Constructor Summary
PersistentFixedSizeStringStorage(int size, String oldestItemsFile, String newestItemsFile)
          Constructor size must be 1 or greater
 
Method Summary
 void add(String line)
          adds an element to the list
 
Methods inherited from class luky.util.FixedSizeStringStorage
get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentFixedSizeStringStorage

public PersistentFixedSizeStringStorage(int size,
                                        String oldestItemsFile,
                                        String newestItemsFile)
Constructor size must be 1 or greater

Method Detail

add

public void add(String line)
adds an element to the list

Overrides:
add in class FixedSizeStringStorage

Luky Library - 4.1.1 (20061117-1148)