APIdia Launch Partner
Top Fields Constructors Methods
com.sun.jndi.dns

pack-priv final Class BindingEnumeration

Located in compilation unit of com.sun.jndi.dns.DnsContext.

extends BaseNameClassPairEnumeration<Binding>
implements NamingEnumeration<Binding>
Class Inheritance
All Implemented Interfaces
javax.naming.NamingEnumeration, java.util.Enumeration

Field Summary

Inherited from com.sun.jndi.dns.BaseNameClassPairEnumeration:
ctxnodes

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Binding
next()

Implements abstract com.sun.jndi.dns.BaseNameClassPairEnumeration.next.

Implements javax.naming.NamingEnumeration.next.

Retrieves the next element in the enumeration.

Inherited from com.sun.jndi.dns.BaseNameClassPairEnumeration:
closehasMorehasMoreElementsnextElement

Constructor Detail

BindingEnumerationback to summary
pack-priv BindingEnumeration(DnsContext ctx, Hashtable<String, NameNode> nodes)

Method Detail

nextback to summary
public Binding next() throws NamingException

Implements abstract com.sun.jndi.dns.BaseNameClassPairEnumeration.next.

Implements javax.naming.NamingEnumeration.next.

Doc from javax.naming.NamingEnumeration.next.

Retrieves the next element in the enumeration. This method allows naming exceptions encountered while retrieving the next element to be caught and handled by the application.

Note 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.

Annotations
@Override
Exceptions
NamingException:
If a naming exception is encountered while attempting to retrieve the next element. See NamingException and its subclasses for the possible naming exceptions.