org.apache.abdera.i18n.text
Class CodepointIterator.RestrictedCodepointIterator
java.lang.Object
org.apache.abdera.i18n.text.CodepointIterator
org.apache.abdera.i18n.text.DelegatingCodepointIterator
org.apache.abdera.i18n.text.CodepointIterator.RestrictedCodepointIterator
- All Implemented Interfaces:
- Iterator<Codepoint>
- Enclosing class:
- CodepointIterator
public static class CodepointIterator.RestrictedCodepointIterator
- extends DelegatingCodepointIterator
Method Summary |
boolean |
hasNext()
True if there are codepoints remaining |
Codepoint |
next()
Return the next codepoint |
char[] |
nextChars()
Return the next chars. |
Methods inherited from class org.apache.abdera.i18n.text.DelegatingCodepointIterator |
get, get, isHigh, isLow, limit, peek, peek, peekChars, position, position, remaining |
Methods inherited from class org.apache.abdera.i18n.text.CodepointIterator |
forByteArray, forByteArray, forCharArray, forCharBuffer, forCharSequence, forInputStream, forInputStream, forReadableByteChannel, forReadableByteChannel, forReader, lastPosition, remove, restrict, restrict, restrict, restrict, restrict, restrict |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodepointIterator.RestrictedCodepointIterator
protected CodepointIterator.RestrictedCodepointIterator(CodepointIterator internal,
Filter filter)
CodepointIterator.RestrictedCodepointIterator
protected CodepointIterator.RestrictedCodepointIterator(CodepointIterator internal,
Filter filter,
boolean scanningOnly)
CodepointIterator.RestrictedCodepointIterator
protected CodepointIterator.RestrictedCodepointIterator(CodepointIterator internal,
Filter filter,
boolean scanningOnly,
boolean notset)
hasNext
public boolean hasNext()
- Description copied from class:
CodepointIterator
- True if there are codepoints remaining
- Specified by:
hasNext
in interface Iterator<Codepoint>
- Overrides:
hasNext
in class DelegatingCodepointIterator
next
public Codepoint next()
throws InvalidCharacterException
- Description copied from class:
CodepointIterator
- Return the next codepoint
- Specified by:
next
in interface Iterator<Codepoint>
- Overrides:
next
in class DelegatingCodepointIterator
- Throws:
InvalidCharacterException
nextChars
public char[] nextChars()
throws InvalidCharacterException
- Description copied from class:
CodepointIterator
- Return the next chars. If the codepoint is not supplemental, the char array will have a single member. If the
codepoint is supplemental, the char array will have two members, representing the high and low surrogate chars
- Overrides:
nextChars
in class DelegatingCodepointIterator
- Throws:
InvalidCharacterException
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.