Package 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:
java.util.Iterator<Codepoint>
- Enclosing class:
- CodepointIterator
public static class CodepointIterator.RestrictedCodepointIterator extends DelegatingCodepointIterator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.abdera.i18n.text.CodepointIterator
CodepointIterator.RestrictedCodepointIterator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()True if there are codepoints remainingCodepointnext()Return the next codepointchar[]nextChars()Return the next chars.-
Methods inherited from class org.apache.abdera.i18n.text.DelegatingCodepointIterator
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
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from class:CodepointIteratorTrue if there are codepoints remaining- Specified by:
hasNextin interfacejava.util.Iterator<Codepoint>- Overrides:
hasNextin classDelegatingCodepointIterator
-
next
public Codepoint next() throws InvalidCharacterException
Description copied from class:CodepointIteratorReturn the next codepoint- Specified by:
nextin interfacejava.util.Iterator<Codepoint>- Overrides:
nextin classDelegatingCodepointIterator- Throws:
InvalidCharacterException
-
nextChars
public char[] nextChars() throws InvalidCharacterExceptionDescription copied from class:CodepointIteratorReturn 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:
nextCharsin classDelegatingCodepointIterator- Throws:
InvalidCharacterException
-
-