ca.odell.glazedlists.io

Class FileList

Implemented Interfaces:
EventListener, EventList<E>, List, ListEventListener<E>

public final class FileList
extends TransformedList<S,E>

An EventList that is persisted to disk.

Warning: This class is a technology preview and is subject to API changes.

EventList Overview
Writable:yes
Concurrency:Requires ReadWriteLock for every access, even for single-threaded use
Performance:N/A
Memory:O(N)
Unit Tests:N/A
Issues:N/A
Author:
Jesse Wilson

Field Summary

Fields inherited from class ca.odell.glazedlists.TransformedList<S,E>

source

Fields inherited from class ca.odell.glazedlists.AbstractEventList<E>

publisher, readWriteLock, updates

Constructor Summary

FileList(File file, ByteCoder byteCoder)
Create a FileList that stores its data in the specified file.

Method Summary

void
close()
Closes this FileList so that it consumes no disc resources.
void
dispose()
boolean
isWritable()
void
listChanged(ListEvent<E> listChanges)

Methods inherited from class ca.odell.glazedlists.TransformedList<S,E>

add, addAll, clear, dispose, get, getSourceIndex, isWritable, listChanged, remove, removeAll, retainAll, set, size

Methods inherited from class ca.odell.glazedlists.AbstractEventList<E>

T[] toArray, add, add, addAll, addAll, addListEventListener, clear, contains, containsAll, equals, get, getPublisher, getReadWriteLock, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeListEventListener, retainAll, set, size, subList, toArray, toString

Constructor Details

FileList

public FileList(File file,
                ByteCoder byteCoder)
            throws IOException
Create a FileList that stores its data in the specified file.

Method Details

close

public void close()

dispose

public void dispose()
Overrides:
dispose in interface TransformedList<S,E>

isWritable

public boolean isWritable()
Overrides:
isWritable in interface TransformedList<S,E>

listChanged

public void listChanged(ListEvent<E> listChanges)

Glazed Lists, Copyright © 2003-2006 publicobject.com, O'Dell Engineering.
Documentation build by buildd at 2008-01-04 14:38