| Modifier and Type | Field and Description |
|---|---|
| public static final CodePointIterator | EMPTY
The empty code point iterator. |
| private static final char[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteIterator | Returns: the byte iteratorGet a byte iterator over the latin-1 encoding of this code point iterator. |
| public ByteIterator | Returns: the byte iteratorGet a byte iterator over the UTF-8 encoding of this code point iterator. |
| public ByteIterator | Returns: the byte iteratortrue to escape NUL (0) characters as two bytes, false to encode them as one byteGet a byte iterator over the UTF-8 encoding of this code point iterator. |
| public ByteIterator | Returns: an iterator over the decoded bytesthe alphabet to use alphabet, boolean true to require padding, false if padding is optionalBase32-decode the current stream. |
| public ByteIterator | Returns: an iterator over the decoded bytesthe alphabet to use alphabet)Base32-decode the current stream. |
| public ByteIterator | |
| public ByteIterator | Returns: an iterator over the decoded bytesthe alphabet to use alphabet, boolean true to require padding, false if padding is optionalBase64-decode the current stream. |
| public ByteIterator | Returns: an iterator over the decoded bytesthe alphabet to use alphabet)Base64-decode the current stream. |
| public ByteIterator | |
| public final boolean | Returns: true if the contents are equal, false otherwisethe other byte iterator other)Determine if the remaining contents of this iterator are identical to the remaining contents of the other iterator. |
| public boolean | Returns: true if the contents are equal, false otherwisethe other string other)Determine if the remaining contents of this iterator are identical to the given string. |
| public final CodePointIterator | Returns: the sub-iteratorthe code point delimiters delims)Get a sub-iterator that is delimited by the given code points. |
| public StringBuilder | Returns: the same string builderthe string builder b)Drain all the remaining code points in this iterator to the given string builder. |
| public StringBuilder | Returns: the same string builderthe string builder b, final String the prefix prefix, final int the delimiter delim, final int the number of code points between each prefix and delimiter n)Drain all the remaining code points in this iterator to the given string builder,
inserting the given prefix and delimiter before and after every |
| public StringBuilder | Returns: the same string builderthe string builder b, final int the delimiter delim, final int the number of code points between each delimiter n)Drain all the remaining code points in this iterator to the given string builder,
inserting the given delimiter after every |
| public StringBuilder | Returns: the same string builderthe string builder b, final String the prefix prefix, final int the number of code points between each prefix n)Drain all the remaining code points in this iterator to the given string builder,
inserting the given prefix before every |
| public String | Returns: the stringDrain all the remaining code points in this iterator to a new string. |
| public String | Returns: the stringthe prefix prefix, final int the delimiter delim, final int the number of code points between each prefix and delimiter n)Drain all the remaining code points in this iterator to a new string,
inserting the given prefix and delimiter before and after every |
| public String | Returns: the stringthe delimiter delim, final int the number of code points between each delimiter n)Drain all the remaining code points in this iterator to a new string,
inserting the given delimiter after every |
| public String | Returns: the stringthe prefix prefix, final int the number of code points between each prefix n)Drain all the remaining code points in this iterator to a new string,
inserting the given prefix before every |
| public abstract long | Returns: the code point offsetRedeclares org. |
| public abstract boolean | Returns: true if there are more code points, false otherwiseRedeclares org. |
| public abstract boolean | Returns: true if there are more code points, false otherwiseRedeclares org. |
| public ByteIterator | |
| public final CodePointIterator | Returns: the limited code point iteratorthe number of code points size)Return a copy of this iterator which is limited to the given number of code points after the current one. |
| public abstract int | Returns: the next code pointRedeclares org. |
| public static CodePointIterator | Returns: the code point iteratorthe array chars)Get a code point iterator for a character array. |
| public static CodePointIterator | Returns: the code point iteratorthe array chars, final int the array offset offs)Get a code point iterator for a character array. |
| public static CodePointIterator | Returns: the code point iteratorthe array chars, final int the array offset offs, final int the number of characters to include len)Get a code point iterator for a character array. |
| public static CodePointIterator | Returns: the code point iteratorthe array bytes)Get a code point iterator for a ISO-8859-1 (Latin-1) encoded array. |
| public static CodePointIterator | Returns: the code point iteratorthe array bytes, final int the array offset offs, final int the number of characters to include len)Get a code point iterator for a ISO-8859-1 (Latin-1) encoded array. |
| public static CodePointIterator | |
| public static CodePointIterator | |
| public static CodePointIterator | Returns: the code point iteratorthe array bytes)Get a code point iterator for a UTF-8 encoded byte array. |
| public static CodePointIterator | Returns: the code point iteratorthe array bytes, final int the array offset offs, final int the number of characters to include len)Get a code point iterator for a UTF-8 encoded array. |
| public abstract int | Returns: the next code pointRedeclares org. |
| public abstract int | Returns: the previous code pointRedeclares org. |
| public abstract int | Returns: the previous code pointRedeclares org. |
| public CodePointIterator | Returns: the code point iteratora predicate)IntPredicate that evaluates the code points that should be skipper. Returning true from the predicate
indicates that the code point must be skipped.Get a sub-iterator that removes code points based on a |
| public CodePointIterator | |
| public CodePointIterator | Returns: the code point iteratorGet a sub-iterator that removes the following code points: |
| EMPTY | back to summary |
|---|---|
| public static final CodePointIterator EMPTY The empty code point iterator. | |
| NO_CHARS | back to summary |
|---|---|
| private static final char[] NO_CHARS | |
| CodePointIterator | back to summary |
|---|---|
| pack-priv CodePointIterator() | |
| asLatin1 | back to summary |
|---|---|
| public ByteIterator asLatin1() Get a byte iterator over the latin-1 encoding of this code point iterator.
| |
| asUtf8 | back to summary |
|---|---|
| public ByteIterator asUtf8() Get a byte iterator over the UTF-8 encoding of this code point iterator.
| |
| asUtf8 | back to summary |
|---|---|
| public ByteIterator asUtf8(final boolean escapeNul) Get a byte iterator over the UTF-8 encoding of this code point iterator.
| |
| base32Decode | back to summary |
|---|---|
| public ByteIterator base32Decode(final Base32Alphabet alphabet, boolean requirePadding) Base32-decode the current stream.
| |
| base32Decode | back to summary |
|---|---|
| public ByteIterator base32Decode(final Base32Alphabet alphabet) Base32-decode the current stream.
| |
| base32Decode | back to summary |
|---|---|
| public ByteIterator base32Decode() Base32-decode the current stream.
| |
| base64Decode | back to summary |
|---|---|
| public ByteIterator base64Decode(final Base64Alphabet alphabet, boolean requirePadding) Base64-decode the current stream.
| |
| base64Decode | back to summary |
|---|---|
| public ByteIterator base64Decode(final Base64Alphabet alphabet) Base64-decode the current stream.
| |
| base64Decode | back to summary |
|---|---|
| public ByteIterator base64Decode() Base64-decode the current stream.
| |
| contentEquals | back to summary |
|---|---|
| public final boolean contentEquals(CodePointIterator other) Determine if the remaining contents of this iterator are identical to the remaining contents of the other iterator. If the
contents are not equal, the iterators will be positioned at the location of the first difference (i.e. the code point
returned by
| |
| contentEquals | back to summary |
|---|---|
| public boolean contentEquals(String other) Determine if the remaining contents of this iterator are identical to the given string. If the
contents are not equal, the iterator will be positioned at the location of the first difference (i.e. the code point
returned by
| |
| delimitedBy | back to summary |
|---|---|
| public final CodePointIterator delimitedBy(final int... delims) Get a sub-iterator that is delimited by the given code points. The returned iterator offset starts at 0 and cannot
be backed up before that point. The returned iterator will return
| |
| drainTo | back to summary |
|---|---|
| public StringBuilder drainTo(StringBuilder b) Drain all the remaining code points in this iterator to the given string builder.
| |
| drainTo | back to summary |
|---|---|
| public StringBuilder drainTo(StringBuilder b, final String prefix, final int delim, final int n) Drain all the remaining code points in this iterator to the given string builder,
inserting the given prefix and delimiter before and after every
| |
| drainTo | back to summary |
|---|---|
| public StringBuilder drainTo(StringBuilder b, final int delim, final int n) Drain all the remaining code points in this iterator to the given string builder,
inserting the given delimiter after every
| |
| drainTo | back to summary |
|---|---|
| public StringBuilder drainTo(StringBuilder b, final String prefix, final int n) Drain all the remaining code points in this iterator to the given string builder,
inserting the given prefix before every
| |
| drainToString | back to summary |
|---|---|
| public String drainToString() Drain all the remaining code points in this iterator to a new string.
| |
| drainToString | back to summary |
|---|---|
| public String drainToString(final String prefix, final int delim, final int n) Drain all the remaining code points in this iterator to a new string,
inserting the given prefix and delimiter before and after every | |
| drainToString | back to summary |
|---|---|
| public String drainToString(final int delim, final int n) Drain all the remaining code points in this iterator to a new string,
inserting the given delimiter after every
| |
| drainToString | back to summary |
|---|---|
| public String drainToString(final String prefix, final int n) Drain all the remaining code points in this iterator to a new string,
inserting the given prefix before every | |
| getIndex | back to summary |
|---|---|
| public abstract long getIndex() Redeclares org. Get the current offset, by code point.
| |
| hasNext | back to summary |
|---|---|
| public abstract boolean hasNext() Redeclares org. Determine if there are more code points after the current code point.
| |
| hasPrevious | back to summary |
|---|---|
| public abstract boolean hasPrevious() Redeclares org. Determine if there are more code points before the current code point.
| |
| hexDecode | back to summary |
|---|---|
| public ByteIterator hexDecode() Hex-decode the current stream.
| |
| limitedTo | back to summary |
|---|---|
| public final CodePointIterator limitedTo(final long size) Return a copy of this iterator which is limited to the given number of code points after the current one. Advancing the returned iterator will also advance this one.
| |
| next | back to summary |
|---|---|
| public abstract int next() throws NoSuchElementException Redeclares org. Get the next code point.
| |
| ofChars | back to summary |
|---|---|
| public static CodePointIterator ofChars(final char[] chars) Get a code point iterator for a character array.
| |
| ofChars | back to summary |
|---|---|
| public static CodePointIterator ofChars(final char[] chars, final int offs) Get a code point iterator for a character array.
| |
| ofChars | back to summary |
|---|---|
| public static CodePointIterator ofChars(final char[] chars, final int offs, final int len) Get a code point iterator for a character array.
| |
| ofLatin1Bytes | back to summary |
|---|---|
| public static CodePointIterator ofLatin1Bytes(final byte[] bytes) Get a code point iterator for a ISO-8859-1 (Latin-1) encoded array.
| |
| ofLatin1Bytes | back to summary |
|---|---|
| public static CodePointIterator ofLatin1Bytes(final byte[] bytes, final int offs, final int len) Get a code point iterator for a ISO-8859-1 (Latin-1) encoded array.
| |
| ofString | back to summary |
|---|---|
| public static CodePointIterator ofString(final String string) Get a code point iterator for a string.
| |
| ofString | back to summary |
|---|---|
| public static CodePointIterator ofString(final String string, final int offs, final int len) Get a code point iterator for a string.
| |
| ofUtf8Bytes | back to summary |
|---|---|
| public static CodePointIterator ofUtf8Bytes(final byte[] bytes) Get a code point iterator for a UTF-8 encoded byte array.
| |
| ofUtf8Bytes | back to summary |
|---|---|
| public static CodePointIterator ofUtf8Bytes(final byte[] bytes, final int offs, final int len) Get a code point iterator for a UTF-8 encoded array.
| |
| peekNext | back to summary |
|---|---|
| public abstract int peekNext() throws NoSuchElementException Redeclares org. Peek at the next code point without advancing.
| |
| peekPrevious | back to summary |
|---|---|
| public abstract int peekPrevious() throws NoSuchElementException Redeclares org. Peek at the previous code point without moving backwards.
| |
| previous | back to summary |
|---|---|
| public abstract int previous() throws NoSuchElementException Redeclares org. Get the previous code point.
| |
| skip | back to summary |
|---|---|
| public CodePointIterator skip(IntPredicate predicate) Get a sub-iterator that removes code points based on a
| |
| skipAll | back to summary |
|---|---|
| public CodePointIterator skipAll() Skip all the remaining code points in this iterator.
(Useful in combination with
| |
| skipCrLf | back to summary |
|---|---|
| public CodePointIterator skipCrLf() Get a sub-iterator that removes the following code points:
| |