org.apache.abdera.util.io
Class FilterCodepointIterator

java.lang.Object
  extended by org.apache.abdera.util.io.CodepointIterator
      extended by org.apache.abdera.util.io.FilterCodepointIterator
Direct Known Subclasses:
RestrictedCodepointIterator

public abstract class FilterCodepointIterator
extends CodepointIterator

Base implementation of a CodepointIterator that filters the output of another CodpointIterator


Field Summary
 
Fields inherited from class org.apache.abdera.util.io.CodepointIterator
limit, position
 
Constructor Summary
protected FilterCodepointIterator(CodepointIterator internal)
           
 
Method Summary
protected  char get()
           
protected  char get(int index)
           
 boolean hasNext()
           
 boolean isHigh(int index)
           
 boolean isLow(int index)
           
 int limit()
           
 int next()
           
 char[] nextChars()
           
 int peek()
           
 int peek(int index)
           
 char[] peekChars()
           
 int position()
           
 void position(int position)
           
 int remaining()
           
 
Methods inherited from class org.apache.abdera.util.io.CodepointIterator
forByteArray, forCharArray, forCharBuffer, forCharSequence, last, lastPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterCodepointIterator

protected FilterCodepointIterator(CodepointIterator internal)
Method Detail

get

protected char get()
Specified by:
get in class CodepointIterator

get

protected char get(int index)
Specified by:
get in class CodepointIterator

hasNext

public boolean hasNext()
Overrides:
hasNext in class CodepointIterator

isHigh

public boolean isHigh(int index)
Overrides:
isHigh in class CodepointIterator

isLow

public boolean isLow(int index)
Overrides:
isLow in class CodepointIterator

limit

public int limit()
Overrides:
limit in class CodepointIterator

next

public int next()
         throws InvalidCharacterException
Overrides:
next in class CodepointIterator
Throws:
InvalidCharacterException

nextChars

public char[] nextChars()
                 throws InvalidCharacterException
Overrides:
nextChars in class CodepointIterator
Throws:
InvalidCharacterException

peek

public int peek()
         throws InvalidCharacterException
Overrides:
peek in class CodepointIterator
Throws:
InvalidCharacterException

peek

public int peek(int index)
         throws InvalidCharacterException
Overrides:
peek in class CodepointIterator
Throws:
InvalidCharacterException

peekChars

public char[] peekChars()
                 throws InvalidCharacterException
Overrides:
peekChars in class CodepointIterator
Throws:
InvalidCharacterException

position

public int position()
Overrides:
position in class CodepointIterator

remaining

public int remaining()
Overrides:
remaining in class CodepointIterator

position

public void position(int position)
Overrides:
position in class CodepointIterator