Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.regexp
Class ReaderCharacterIterator

    java.lang.Object
      |
      +--org.apache.regexp.ReaderCharacterIterator

All Implemented Interfaces:
  CharacterIterator

public final class ReaderCharacterIterator
extends Object
implements CharacterIterator

Encapsulates InputStream, ...

Author:
  Ales Novak

Constructor Summary
`ReaderCharacterIterator(Reader reader)`

Method Summary
`char` | `charAt(int pos)`
`boolean` | `isEnd(int pos)`
`String` | `substring(int offset)`
`String` | `substring(int offset, int length)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ReaderCharacterIterator

    public ReaderCharacterIterator(Reader reader)

  Parameters:
    `is` - an Reader, which is parsed

Method Detail

### substring

    public String substring(int offset,
                            int length)

  Specified by:
    `substring` in interface `CharacterIterator`
  Returns:
    a substring

### substring

    public String substring(int offset)

  Specified by:
    `substring` in interface `CharacterIterator`
  Returns:
    a substring

### charAt

    public char charAt(int pos)

  Specified by:
    `charAt` in interface `CharacterIterator`
  Returns:
    a character at the specified position.

### isEnd

    public boolean isEnd(int pos)

  Specified by:
    `isEnd` in interface `CharacterIterator`
  Returns:
    `true` iff if the specified index is after the end of the character stream

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD