DhEnumeration.next

Overview | Methods | Fields | This Package | All Packages

DhEnumeration.next

Returns the next element of this enumeration.

Syntax

public DhElement next()

Return Value

Returns the next element of this enumeration, or returns null if one does not exist.

Remarks

This method returns a DhElement object so there is no need to cast the result to a DhElement object. The result can be further cast (for example, to DhImage) depending on the type of enumeration this is.

Many HTML tags do not map one-to-one into Java classes in this package. When enumerating through the return of next, always check the result by calling instanceof.