# Interface CharacterIterator

All Known Implementing Classes:
  `CharacterArrayCharacterIterator, ReaderCharacterIterator, StreamCharacterIterator, StringCharacterIterator`

public interface CharacterIterator
Encapsulates different types of character sources - String, InputStream, ... Defines a set of common methods

- ## Method Summary

  Modifier and Type
  Method
  Description
  `char`
  `charAt(int pos)`

  ###### Returns

  `boolean`
  `isEnd(int pos)`

  ###### Returns

  `String`
  `substring(int beginIndex)`

  ###### Returns

  `String`
  `substring(int beginIndex, int endIndex)`

  ###### Returns

- ## Method Details

  - ### substring

    String substring(int beginIndex, int endIndex)

    ###### Returns

    a substring

  - ### substring

    String substring(int beginIndex)

    ###### Returns

    a substring

  - ### charAt

    char charAt(int pos)

    ###### Returns

    a character at the specified position.

  - ### isEnd

    boolean isEnd(int pos)

    ###### Returns

    true iff if the specified index is after the end of the character stream