## Uses of Interface
java.util.Iterator

- Packages that use Iterator
  Package | Description
  --- | ---
  java.applet | Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context.
  java.awt.dnd | Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.
  java.beans.beancontext | Provides classes and interfaces relating to bean context.
  java.lang | Provides classes that are fundamental to the design of the Java programming language.
  java.nio.charset.spi | Service-provider classes for the ``java.nio.charset`` package.
  java.nio.file | Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
  java.security.cert | Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
  java.sql | Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language.
  java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
  java.util.concurrent | Utility classes commonly useful in concurrent programming.
  java.util.stream | Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
  javax.imageio | The main package of the Java Image I/O API.
  javax.imageio.spi | A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.
  javax.tools | Provides interfaces for tools which can be invoked from a program, for example, compilers.
  javax.xml.crypto | Common classes for XML cryptography.
  javax.xml.crypto.dom | DOM-specific classes for the `javax.xml.crypto` package.
  javax.xml.namespace | XML Namespace processing.
  javax.xml.soap | Provides the API for creating and building SOAP messages.
  javax.xml.stream |
  javax.xml.stream.events |
  javax.xml.stream.util |
  javax.xml.ws | This package contains the core JAX-WS APIs.
  javax.xml.ws.spi | This package defines SPIs for JAX-WS.

- - ### Uses of Iterator in java.applet

    Methods in java.applet that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<String>` | AppletContext.`getStreamKeys()` Finds all the keys of the streams in this applet context.

  - ### Uses of Iterator in java.awt.dnd

    Methods in java.awt.dnd that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<InputEvent>` | DragGestureEvent.`iterator()` Returns an `Iterator` for the events comprising the gesture.

  - ### Uses of Iterator in java.beans.beancontext

    Classes in java.beans.beancontext that implement Iterator
    Modifier and Type | Class | Description
    --- | --- | ---
    `protected static class` | `BeanContextSupport.BCSIterator` protected final subclass that encapsulates an iterator but implements a noop remove() method.

    Methods in java.beans.beancontext that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected Iterator` | BeanContextSupport.`bcsChildren()` Returns an iterator of all children of this `BeanContext`.
    `Iterator` | BeanContextServicesSupport.`getCurrentServiceClasses()`
    `Iterator` | BeanContextServices.`getCurrentServiceClasses()` Gets the currently available services for this context.
    `Iterator` | BeanContextServiceAvailableEvent.`getCurrentServiceSelectors()` Gets the list of service dependent selectors.
    `Iterator` | BeanContextServicesSupport.BCSSProxyServiceProvider.`getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass)`
    `Iterator` | BeanContextServiceProvider.`getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass)` Invoked by `BeanContextServices`, this method gets the current service selectors for the specified service.
    `Iterator` | BeanContextServicesSupport.`getCurrentServiceSelectors(Class serviceClass)`
    `Iterator` | BeanContextServices.`getCurrentServiceSelectors(Class serviceClass)` Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider.
    `Iterator` | BeanContextSupport.`iterator()` Gets all JavaBean or `BeanContext` instances currently nested in this `BeanContext`.
    `Iterator` | BeanContextMembershipEvent.`iterator()` Gets the array of children affected by this event.

  - ### Uses of Iterator in java.lang

    Methods in java.lang that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<T>` | Iterable.`iterator()` Returns an iterator over elements of type `T`.

  - ### Uses of Iterator in java.nio.charset.spi

    Methods in java.nio.charset.spi that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract Iterator<Charset>` | CharsetProvider.`charsets()` Creates an iterator that iterates over the charsets supported by this provider.

  - ### Uses of Iterator in java.nio.file

    Methods in java.nio.file that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<T>` | DirectoryStream.`iterator()` Returns the iterator associated with this `DirectoryStream`.
    `Iterator<Path>` | Path.`iterator()` Returns an iterator over the name elements of this path.

  - ### Uses of Iterator in java.security.cert

    Methods in java.security.cert that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<String>` | CertificateFactorySpi.`engineGetCertPathEncodings()` Returns an iteration of the `CertPath` encodings supported by this certificate factory, with the default encoding first.
    `Iterator<String>` | CertificateFactory.`getCertPathEncodings()` Returns an iteration of the `CertPath` encodings supported by this certificate factory, with the default encoding first.
    `Iterator<? extends PolicyNode>` | PolicyNode.`getChildren()` Returns an iterator over the children of this node.
    `abstract Iterator<String>` | CertPath.`getEncodings()` Returns an iteration of the encodings supported by this certification path, with the default encoding first.

  - ### Uses of Iterator in java.sql

    Methods in java.sql that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<Throwable>` | SQLException.`iterator()` Returns an iterator over the chained SQLExceptions.

  - ### Uses of Iterator in java.util

    Subinterfaces of Iterator in java.util
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `ListIterator<E>` An iterator for lists that allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator's current position in the list.
    `interface` | `PrimitiveIterator<T,T_CONS>` A base type for primitive specializations of `Iterator`.
    `static interface` | `PrimitiveIterator.OfDouble` An Iterator specialized for `double` values.
    `static interface` | `PrimitiveIterator.OfInt` An Iterator specialized for `int` values.
    `static interface` | `PrimitiveIterator.OfLong` An Iterator specialized for `long` values.

    Classes in java.util that implement Iterator
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `Scanner` A simple text scanner which can parse primitive types and strings using regular expressions.

    Methods in java.util that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<E>` | TreeSet.`descendingIterator()` Returns an iterator over the elements in this set in descending order.
    `Iterator<E>` | LinkedList.`descendingIterator()`
    `Iterator<E>` | NavigableSet.`descendingIterator()` Returns an iterator over the elements in this set, in descending order.
    `Iterator<E>` | ArrayDeque.`descendingIterator()`
    `Iterator<E>` | Deque.`descendingIterator()` Returns an iterator over the elements in this deque in reverse sequential order.
    `static <T> Iterator<T>` | Collections.`emptyIterator()` Returns an iterator that has no elements.
    `Iterator<S>` | ServiceLoader.`iterator()` Lazily loads the available providers of this loader's service.
    `Iterator<E>` | TreeSet.`iterator()` Returns an iterator over the elements in this set in ascending order.
    `Iterator<E>` | PriorityQueue.`iterator()` Returns an iterator over the elements in this queue.
    `Iterator<E>` | HashSet.`iterator()` Returns an iterator over the elements in this set.
    `Iterator<E>` | AbstractSequentialList.`iterator()` Returns an iterator over the elements in this list (in proper sequence).
    `Iterator<E>` | NavigableSet.`iterator()` Returns an iterator over the elements in this set, in ascending order.
    `Iterator<E>` | ArrayDeque.`iterator()` Returns an iterator over the elements in this deque.
    `Iterator<E>` | Deque.`iterator()` Returns an iterator over the elements in this deque in proper sequence.
    `Iterator<E>` | ArrayList.`iterator()` Returns an iterator over the elements in this list in proper sequence.
    `abstract Iterator<E>` | AbstractCollection.`iterator()` Returns an iterator over the elements contained in this collection.
    `Iterator<E>` | AbstractList.`iterator()` Returns an iterator over the elements in this list in proper sequence.
    `Iterator<E>` | Vector.`iterator()` Returns an iterator over the elements in this list in proper sequence.
    `Iterator<E>` | List.`iterator()` Returns an iterator over the elements in this list in proper sequence.
    `Iterator<E>` | Collection.`iterator()` Returns an iterator over the elements in this collection.
    `Iterator<E>` | Set.`iterator()` Returns an iterator over the elements in this set.
    `static <T> Iterator<T>` | Spliterators.`iterator(Spliterator<? extends T> spliterator)` Creates an `Iterator` from a `Spliterator`.

    Methods in java.util with parameters of type Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `static <T> Spliterator<T>` | Spliterators.`spliterator(Iterator<? extends T> iterator, long size, int characteristics)` Creates a `Spliterator` using a given `Iterator` as the source of elements, and with a given initially reported size.
    `static <T> Spliterator<T>` | Spliterators.`spliteratorUnknownSize(Iterator<? extends T> iterator, int characteristics)` Creates a `Spliterator` using a given `Iterator` as the source of elements, with no initial size estimate.

  - ### Uses of Iterator in java.util.concurrent

    Methods in java.util.concurrent that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<E>` | ConcurrentLinkedDeque.`descendingIterator()` Returns an iterator over the elements in this deque in reverse sequential order.
    `Iterator<E>` | ConcurrentSkipListSet.`descendingIterator()` Returns an iterator over the elements in this set in descending order.
    `Iterator<E>` | LinkedBlockingDeque.`descendingIterator()` Returns an iterator over the elements in this deque in reverse sequential order.
    `Iterator<E>` | CopyOnWriteArraySet.`iterator()` Returns an iterator over the elements contained in this set in the order in which these elements were added.
    `Iterator<E>` | SynchronousQueue.`iterator()` Returns an empty iterator in which `hasNext` always returns `false`.
    `Iterator<E>` | LinkedTransferQueue.`iterator()` Returns an iterator over the elements in this queue in proper sequence.
    `Iterator<E>` | ConcurrentLinkedDeque.`iterator()` Returns an iterator over the elements in this deque in proper sequence.
    `Iterator<E>` | ArrayBlockingQueue.`iterator()` Returns an iterator over the elements in this queue in proper sequence.
    `Iterator<E>` | LinkedBlockingQueue.`iterator()` Returns an iterator over the elements in this queue in proper sequence.
    `Iterator<E>` | ConcurrentSkipListSet.`iterator()` Returns an iterator over the elements in this set in ascending order.
    `Iterator<E>` | PriorityBlockingQueue.`iterator()` Returns an iterator over the elements in this queue.
    `Iterator<E>` | ConcurrentLinkedQueue.`iterator()` Returns an iterator over the elements in this queue in proper sequence.
    `Iterator<E>` | BlockingDeque.`iterator()` Returns an iterator over the elements in this deque in proper sequence.
    `Iterator<E>` | LinkedBlockingDeque.`iterator()` Returns an iterator over the elements in this deque in proper sequence.
    `Iterator<E>` | DelayQueue.`iterator()` Returns an iterator over all the elements (both expired and unexpired) in this queue.
    `Iterator<E>` | CopyOnWriteArrayList.`iterator()` Returns an iterator over the elements in this list in proper sequence.
    `Iterator<K>` | ConcurrentHashMap.KeySetView.`iterator()`

  - ### Uses of Iterator in java.util.stream

    Methods in java.util.stream that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<T>` | BaseStream.`iterator()` Returns an iterator for the elements of this stream.

  - ### Uses of Iterator in javax.imageio

    Methods in javax.imageio that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Iterator<ImageReader>` | ImageIO.`getImageReaders(Object input)` Returns an `Iterator` containing all currently registered `ImageReader`s that claim to be able to decode the supplied `Object`, typically an `ImageInputStream`.
    `static Iterator<ImageReader>` | ImageIO.`getImageReadersByFormatName(String formatName)` Returns an `Iterator` containing all currently registered `ImageReader`s that claim to be able to decode the named format.
    `static Iterator<ImageReader>` | ImageIO.`getImageReadersByMIMEType(String MIMEType)` Returns an `Iterator` containing all currently registered `ImageReader`s that claim to be able to decode files with the given MIME type.
    `static Iterator<ImageReader>` | ImageIO.`getImageReadersBySuffix(String fileSuffix)` Returns an `Iterator` containing all currently registered `ImageReader`s that claim to be able to decode files with the given suffix.
    `static Iterator<ImageTranscoder>` | ImageIO.`getImageTranscoders(ImageReader reader, ImageWriter writer)` Returns an `Iterator` containing all currently registered `ImageTranscoder`s that claim to be able to transcode between the metadata of the given `ImageReader` and `ImageWriter`.
    `abstract Iterator<ImageTypeSpecifier>` | ImageReader.`getImageTypes(int imageIndex)` Returns an `Iterator` containing possible image types to which the given image may be decoded, in the form of `ImageTypeSpecifiers`s.
    `static Iterator<ImageWriter>` | ImageIO.`getImageWriters(ImageTypeSpecifier type, String formatName)` Returns an `Iterator` containing all currently registered `ImageWriter`s that claim to be able to encode images of the given layout (specified using an `ImageTypeSpecifier`) in the given format.
    `static Iterator<ImageWriter>` | ImageIO.`getImageWritersByFormatName(String formatName)` Returns an `Iterator` containing all currently registered `ImageWriter`s that claim to be able to encode the named format.
    `static Iterator<ImageWriter>` | ImageIO.`getImageWritersByMIMEType(String MIMEType)` Returns an `Iterator` containing all currently registered `ImageWriter`s that claim to be able to encode files with the given MIME type.
    `static Iterator<ImageWriter>` | ImageIO.`getImageWritersBySuffix(String fileSuffix)` Returns an `Iterator` containing all currently registered `ImageWriter`s that claim to be able to encode files with the given suffix.
    `Iterator<IIOImage>` | ImageReader.`readAll(Iterator<? extends ImageReadParam> params)` Returns an `Iterator` containing all the images, thumbnails, and metadata, starting at the index given by `getMinIndex`, from the input source in the form of `IIOImage` objects.

    Methods in javax.imageio with parameters of type Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected static BufferedImage` | ImageReader.`getDestination(ImageReadParam param, Iterator<ImageTypeSpecifier> imageTypes, int width, int height)` Returns the `BufferedImage` to which decoded pixel data should be written.
    `Iterator<IIOImage>` | ImageReader.`readAll(Iterator<? extends ImageReadParam> params)` Returns an `Iterator` containing all the images, thumbnails, and metadata, starting at the index given by `getMinIndex`, from the input source in the form of `IIOImage` objects.

  - ### Uses of Iterator in javax.imageio.spi

    Methods in javax.imageio.spi that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<Class<?>>` | ServiceRegistry.`getCategories()` Returns an `Iterator` of `Class` objects indicating the current set of categories.
    `<T> Iterator<T>` | ServiceRegistry.`getServiceProviders(Class<T> category, boolean useOrdering)` Returns an `Iterator` containing all registered service providers in the given category.
    `<T> Iterator<T>` | ServiceRegistry.`getServiceProviders(Class<T> category, ServiceRegistry.Filter filter, boolean useOrdering)` Returns an `Iterator` containing service provider objects within a given category that satisfy a criterion imposed by the supplied `ServiceRegistry.Filter` object's `filter` method.
    `static <T> Iterator<T>` | ServiceRegistry.`lookupProviders(Class<T> providerClass)` Locates and incrementally instantiates the available providers of a given service using the context class loader.
    `static <T> Iterator<T>` | ServiceRegistry.`lookupProviders(Class<T> providerClass, ClassLoader loader)` Searches for implementations of a particular service class using the given class loader.

    Methods in javax.imageio.spi with parameters of type Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | ServiceRegistry.`registerServiceProviders(Iterator<?> providers)` Adds a set of service provider objects, taken from an `Iterator` to the registry.

    Constructors in javax.imageio.spi with parameters of type Iterator
    Constructor | Description
    --- | ---
    `ServiceRegistry(Iterator<Class<?>> categories)` Constructs a `ServiceRegistry` instance with a set of categories taken from the `categories` argument.

  - ### Uses of Iterator in javax.tools

    Methods in javax.tools with parameters of type Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | ForwardingJavaFileManager.`handleOption(String current, Iterator<String> remaining)`
    `boolean` | JavaFileManager.`handleOption(String current, Iterator<String> remaining)` Handles one option.

  - ### Uses of Iterator in javax.xml.crypto

    Methods in javax.xml.crypto that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator` | NodeSetData.`iterator()` Returns a read-only iterator over the nodes contained in this `NodeSetData` in document order.

  - ### Uses of Iterator in javax.xml.crypto.dom

    Methods in javax.xml.crypto.dom that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator` | DOMCryptoContext.`iterator()` Returns a read-only iterator over the set of Id/Element mappings of this `DOMCryptoContext`.

  - ### Uses of Iterator in javax.xml.namespace

    Methods in javax.xml.namespace that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator` | NamespaceContext.`getPrefixes(String namespaceURI)` Get all prefixes bound to a Namespace URI in the current scope.

  - ### Uses of Iterator in javax.xml.soap

    Methods in javax.xml.soap that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator` | SOAPHeader.`examineAllHeaderElements()` Returns an `Iterator` over all the `SOAPHeaderElement` objects in this `SOAPHeader` object.
    `Iterator` | SOAPHeader.`examineHeaderElements(String actor)` Returns an `Iterator` over all the `SOAPHeaderElement` objects in this `SOAPHeader` object that have the specified actor.
    `Iterator` | SOAPHeader.`examineMustUnderstandHeaderElements(String actor)` Returns an `Iterator` over all the `SOAPHeaderElement` objects in this `SOAPHeader` object that have the specified actor and that have a MustUnderstand attribute whose value is equivalent to `true`.
    `Iterator` | SOAPHeader.`extractAllHeaderElements()` Returns an `Iterator` over all the `SOAPHeaderElement` objects in this `SOAPHeader` object and detaches them from this `SOAPHeader` object.
    `Iterator` | SOAPHeader.`extractHeaderElements(String actor)` Returns an `Iterator` over all the `SOAPHeaderElement` objects in this `SOAPHeader` object that have the specified actor and detaches them from this `SOAPHeader` object.
    `Iterator` | SOAPElement.`getAllAttributes()` Returns an `Iterator` over all of the attribute `Name` objects in this `SOAPElement` object.
    `Iterator` | SOAPElement.`getAllAttributesAsQNames()` Returns an `Iterator` over all of the attributes in this `SOAPElement` as `QName` objects.
    `Iterator` | MimeHeaders.`getAllHeaders()` Returns all the `MimeHeader`s in this `MimeHeaders` object.
    `abstract Iterator` | AttachmentPart.`getAllMimeHeaders()` Retrieves all the headers for this `AttachmentPart` object as an iterator over the `MimeHeader` objects.
    `abstract Iterator` | SOAPPart.`getAllMimeHeaders()` Retrieves all the headers for this `SOAPPart` object as an iterator over the `MimeHeader` objects.
    `abstract Iterator` | SOAPMessage.`getAttachments()` Retrieves all the `AttachmentPart` objects that are part of this `SOAPMessage` object.
    `abstract Iterator` | SOAPMessage.`getAttachments(MimeHeaders headers)` Retrieves all the `AttachmentPart` objects that have header entries that match the specified headers.
    `Iterator` | SOAPElement.`getChildElements()` Returns an `Iterator` over all the immediate child `Node`s of this element.
    `Iterator` | SOAPElement.`getChildElements(Name name)` Returns an `Iterator` over all the immediate child `Node`s of this element with the specified name.
    `Iterator` | SOAPElement.`getChildElements(QName qname)` Returns an `Iterator` over all the immediate child `Node`s of this element with the specified qname.
    `Iterator` | Detail.`getDetailEntries()` Gets an Iterator over all of the `DetailEntry`s in this `Detail` object.
    `Iterator` | SOAPFault.`getFaultReasonLocales()` Returns an `Iterator` over a distinct sequence of `Locale`s for which there are associated Reason Text items.
    `Iterator` | SOAPFault.`getFaultReasonTexts()` Returns an `Iterator` over a sequence of `String` objects containing all of the Reason Text items for this `SOAPFault`.
    `Iterator` | SOAPFault.`getFaultSubcodes()` Gets the Subcodes for this `SOAPFault` as an iterator over `QNames`.
    `Iterator` | MimeHeaders.`getMatchingHeaders(String[] names)` Returns all the `MimeHeader` objects whose name matches a name in the given array of names.
    `abstract Iterator` | AttachmentPart.`getMatchingMimeHeaders(String[] names)` Retrieves all `MimeHeader` objects that match a name in the given array.
    `abstract Iterator` | SOAPPart.`getMatchingMimeHeaders(String[] names)` Retrieves all `MimeHeader` objects that match a name in the given array.
    `Iterator` | SOAPElement.`getNamespacePrefixes()` Returns an `Iterator` over the namespace prefix `String`s declared by this element.
    `Iterator` | MimeHeaders.`getNonMatchingHeaders(String[] names)` Returns all of the `MimeHeader` objects whose name does not match a name in the given array of names.
    `abstract Iterator` | AttachmentPart.`getNonMatchingMimeHeaders(String[] names)` Retrieves all `MimeHeader` objects whose name does not match a name in the given array.
    `abstract Iterator` | SOAPPart.`getNonMatchingMimeHeaders(String[] names)` Retrieves all `MimeHeader` objects whose name does not match a name in the given array.
    `Iterator` | SOAPElement.`getVisibleNamespacePrefixes()` Returns an `Iterator` over the namespace prefix `String`s visible to this element.

    Methods in javax.xml.soap with parameters of type Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `SOAPHeaderElement` | SOAPHeader.`addUpgradeHeaderElement(Iterator supportedSOAPURIs)` Creates a new Upgrade `SOAPHeaderElement` object initialized with the specified List of supported SOAP URIs and adds it to this `SOAPHeader` object.

  - ### Uses of Iterator in javax.xml.stream

    Subinterfaces of Iterator in javax.xml.stream
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `XMLEventReader` This is the top level interface for parsing XML Events.

    Methods in javax.xml.stream with parameters of type Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract EndElement` | XMLEventFactory.`createEndElement(QName name, Iterator namespaces)` Create a new EndElement
    `abstract EndElement` | XMLEventFactory.`createEndElement(String prefix, String namespaceUri, String localName, Iterator namespaces)` Create a new EndElement
    `abstract StartElement` | XMLEventFactory.`createStartElement(QName name, Iterator attributes, Iterator namespaces)` Create a new StartElement.
    `abstract StartElement` | XMLEventFactory.`createStartElement(QName name, Iterator attributes, Iterator namespaces)` Create a new StartElement.
    `abstract StartElement` | XMLEventFactory.`createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)` Create a new StartElement.
    `abstract StartElement` | XMLEventFactory.`createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)` Create a new StartElement.
    `abstract StartElement` | XMLEventFactory.`createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)` Create a new StartElement.
    `abstract StartElement` | XMLEventFactory.`createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)` Create a new StartElement.

  - ### Uses of Iterator in javax.xml.stream.events

    Methods in javax.xml.stream.events that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator` | StartElement.`getAttributes()` Returns an Iterator of non-namespace declared attributes declared on this START_ELEMENT, returns an empty iterator if there are no attributes.
    `Iterator` | EndElement.`getNamespaces()` Returns an Iterator of namespaces that have gone out of scope.
    `Iterator` | StartElement.`getNamespaces()` Returns an Iterator of namespaces declared on this element.

  - ### Uses of Iterator in javax.xml.stream.util

    Classes in javax.xml.stream.util that implement Iterator
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `EventReaderDelegate` This is the base class for deriving an XMLEventReader filter.

  - ### Uses of Iterator in javax.xml.ws

    Methods in javax.xml.ws that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<QName>` | Service.`getPorts()` Returns an `Iterator` for the list of `QName`s of service endpoints grouped by this service

  - ### Uses of Iterator in javax.xml.ws.spi

    Methods in javax.xml.ws.spi that return Iterator
    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract Iterator<QName>` | ServiceDelegate.`getPorts()` Returns an `Iterator` for the list of `QName`s of service endpoints grouped by this service

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.