org.eclipse.rdf4j.rio.helpers

## Class CodePointIterator

- java.lang.Object
- - org.eclipse.rdf4j.rio.helpers.CodePointIterator

- All Implemented Interfaces:
    Iterator<Integer>

      public class CodePointIterator
      extends Object
      implements Iterator<Integer>

  Helper class for quickly iterating over a String and receiving each character code point (taking care to handle surrogate pairs correctly).
  Author:
    Jeen Broekstra
  See Also:
    `CodePointSequence`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CodePointIterator(String source)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()`
    `Integer` | `next()`
    `void` | `remove()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.util.Iterator

      `forEachRemaining`

- - ### Constructor Detail

    - #### CodePointIterator

          public CodePointIterator(String source)

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in interface `Iterator<Integer>`

    - #### next

          public Integer next()

      Specified by:
        `next` in interface `Iterator<Integer>`

    - #### remove

          public void remove()

      Specified by:
        `remove` in interface `Iterator<Integer>`

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.