JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
Enclosing class:
HTMLDocument
public abstract static class HTMLDocument.Iterator
extends Object
An iterator to iterate over a particular type of
tag. The iterator is not thread safe. If reliable
access to the document is not already ensured by
the context under which the iterator is being used,
its use should be performed under the protection of
Document.render.
Constructor Summary
Constructors
Constructor
Description
Iterator ()
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method
Description
abstract AttributeSet
getAttributes ()
Return the attributes for this tag.
abstract int
getEndOffset ()
Returns the end of the range for which the current occurrence of
the tag is defined and has the same attributes.
abstract int
getStartOffset ()
Returns the start of the range for which the current occurrence of
the tag is defined and has the same attributes.
abstract HTML.Tag
getTag ()
Type of tag this iterator represents.
abstract boolean
isValid ()
Indicates if the iterator is currently
representing an occurrence of a tag.
abstract void
next ()
Move the iterator forward to the next occurrence
of the tag it represents.
Methods declared in class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Detail
Iterator
public Iterator()
JavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2021, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .