public final class RiceXmlImportList<E> extends AbstractList<E> implements Serializable
This is based off of the JAXB "streaming" unmarshalling strategy, which is briefly mentioned here:
http://jaxb.java.net/guide/Dealing_with_large_documents.html
and is presented in the example code available here:
http://jaxb.java.net/2.2.4/
modCount| Constructor and Description |
|---|
RiceXmlImportList(RiceXmlListAdditionListener<E> listAdditionListener)
Constructs a new streaming list that will pass new items to the given listener instead of storing them.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Instead of adding the item to the list, simply invoke the appropriate listener.
|
E |
get(int index)
This method always throws an exception, since the list never contains any items.
|
int |
size()
This method always returns zero, since items are never actually added to the list.
|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic RiceXmlImportList(RiceXmlListAdditionListener<E> listAdditionListener)
listAdditionListener - The listener to use.IllegalArgumentException - if listAdditionListener is null.public boolean add(E e)
This is based off of the "streaming" unmarshalling strategy used in one of the JAXB sample apps.
add in interface Collection<E>add in interface List<E>add in class AbstractList<E>public E get(int index)
get in interface List<E>get in class AbstractList<E>IndexOutOfBoundsExceptionpublic int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>Copyright © 2005–2016 The Kuali Foundation. All rights reserved.