org.apache.regexp
Class StreamCharacterIterator
java.lang.Object
org.apache.regexp.StreamCharacterIterator
- All Implemented Interfaces:
- CharacterIterator
public final class StreamCharacterIterator
- extends Object
- implements CharacterIterator
Encapsulates java.io.InputStream as CharacterIterator.
- Version:
- CVS $Id: StreamCharacterIterator.java 518156 2007-03-14 14:31:26Z vgritsenko $
- Author:
- Ales Novak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamCharacterIterator
public StreamCharacterIterator(InputStream is)
- Parameters:
is
- an InputStream, which is parsed
substring
public String substring(int beginIndex,
int endIndex)
- Specified by:
substring
in interface CharacterIterator
- Returns:
- a substring
substring
public String substring(int beginIndex)
- 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
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.