|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.huihoo.jfox.jndi.NamingEnumerationImpl
| Constructor Summary | |
NamingEnumerationImpl(java.util.List list)
|
|
| Method Summary | |
void |
close()
Closes this enumeration. |
boolean |
hasMore()
Determines whether there are any more elements in the enumeration. |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
java.lang.Object |
next()
Retrieves the next element in the enumeration. |
java.lang.Object |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NamingEnumerationImpl(java.util.List list)
| Method Detail |
public java.lang.Object next()
throws javax.naming.NamingException
javax.naming.NamingEnumerationNote that next() can also throw the runtime exception NoSuchElementException to indicate that the caller is attempting to enumerate beyond the end of the enumeration. This is different from a NamingException, which indicates that there was a problem in obtaining the next element, for example, due to a referral or server unavailability, etc.
next in interface javax.naming.NamingEnumerationjavax.naming.NamingException - If a naming exception is encountered while attempting
to retrieve the next element. See NamingException
and its subclasses for the possible naming exceptions.Enumeration.nextElement()public boolean hasMoreElements()
java.util.Enumeration
hasMoreElements in interface java.util.Enumerationtrue if and only if this enumeration object
contains at least one more element to provide;
false otherwise.
public boolean hasMore()
throws javax.naming.NamingException
javax.naming.NamingEnumeration
hasMore in interface javax.naming.NamingEnumerationjavax.naming.NamingException - If a naming exception is encountered while attempting
to determine whether there is another element
in the enumeration. See NamingException
and its subclasses for the possible naming exceptions.Enumeration.hasMoreElements()public java.lang.Object nextElement()
java.util.Enumeration
nextElement in interface java.util.Enumeration
public void close()
throws javax.naming.NamingException
javax.naming.NamingEnumerationThis method indicates to the service provider that it is free to release resources associated with the enumeration, and can notify servers to cancel any outstanding requests. The close() method is a hint to implementations for managing their resources. Implementations are encouraged to use appropriate algorithms to manage their resources when client omits the close() calls.
close in interface javax.naming.NamingEnumerationjavax.naming.NamingException - If a naming exception is encountered
while closing the enumeration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||