|
Project JXTA | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jxta.impl.util.DynamicEnumeration
A dynamic Enumeration which allows items to added to the
enumeration while it is in use. This is mostly intended for use with
SequenceInputStream.
| Constructor Summary | |
DynamicEnumeration()
Creates a new instance of DynamicEnumeration |
|
DynamicEnumeration(List initial)
Creates a new instance of DynamicEnumeration |
|
| Method Summary | |
void |
add(Object add)
Add another object to the enumeration. |
void |
close()
There will be no more objects added. |
boolean |
hasMoreElements()
If the Enumeration has not been closed we may have to block until we have a stream to return. |
Object |
nextElement()
If the Enumeration has not been closed we may have to block until we have a stream to return. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DynamicEnumeration()
public DynamicEnumeration(List initial)
| Method Detail |
public boolean hasMoreElements()
hasMoreElements in interface Enumerationpublic Object nextElement()
nextElement in interface Enumerationpublic void add(Object add)
public void close()
|
JXTA J2SE | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||