| Modifier and Type | Field and Description |
|---|---|
| public static final ByteIterator | EMPTY
The empty byte iterator. |
| private static final byte[] | |
| private static final ThreadLocal | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteStringBuilder | |
| public final InputStream | |
| public CodePointIterator | |
| public CodePointIterator | |
| public CodePointIterator | Returns: an iterator over the encoded charactersthe alphabet to use alphabet, final boolean true to add trailing padding, false to leave it offBase32-encode the current stream. |
| public CodePointIterator | Returns: an iterator over the encoded charactersthe alphabet to use alphabet)Base32-encode the current stream. |
| public CodePointIterator | |
| public CodePointIterator | Returns: an iterator over the encoded charactersthe alphabet to use alphabet, final boolean true to add trailing padding, false to leave it offBase64-encode the current stream. |
| public CodePointIterator | Returns: an iterator over the encoded charactersthe alphabet to use alphabet)Base64-encode the current stream. |
| public CodePointIterator | |
| 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 final ByteIterator | Returns: the sub-iteratorthe byte delimiters delims)Get a sub-iterator that is delimited by the given bytes. |
| public ByteIterator | |
| public ByteIterator | |
| public byte[] | Returns: the remaining bytes as a single arrayDrain all the remaining bytes in this iterator. |
| public byte[] | Returns: the array of consumed bytes (may be smaller thancount)the number of bytes to read count)Drain up to |
| public int | Returns: the total number of bytes drained intodst, always greater or equal to 0the buffer into which the data is drained dst)Drains up to |
| public int | Returns: the total number of bytes drained intodst, always greater or equal to 0the buffer into which the data is drained dst, int the start offset in array offs, int dst at which the data is written.the maximum number of bytes to drain len)Drains up to |
| public byte[] | Returns: the array of consumed bytesthe number of bytes to read count)Drain exactly |
| public ByteArrayOutputStream | Returns: the same streamthe stream stream)Drain all the remaining bytes in this iterator to the given stream. |
| public String | Returns: the Latin-1 stringthe maximum number of bytes to consume count)Convenience method to directly drain a certain number of bytes to a Latin-1 string. |
| public String | Returns: the UTF-8 stringthe maximum number of bytes to consume count)Convenience method to directly drain a certain number of bytes to a UTF-8 string. |
| public int | |
| public int | |
| public long | |
| public abstract long | Returns: the byte offsetRedeclares org. |
| public int | |
| public int | |
| public long | |
| public int | |
| public long | |
| public abstract boolean | Returns: true if there are more bytes, false otherwiseRedeclares org. |
| public abstract boolean | Returns: true if there are more bytes, false otherwiseRedeclares org. |
| public CodePointIterator | Returns: an iterator over the encoded characterstrue to use upper case characters when encoding,
false to use lower case charactersHex-encode the current stream. |
| public CodePointIterator | |
| public ByteIterator | Returns: the interleaving byte iteratorthe interleaving table table)Get a byte iterator which translates this byte iterator through an interleaving table. |
| public ByteIterator | Returns: the interleaving byte iteratorthe interleaving table table)Get a byte iterator which translates this byte iterator through an interleaving table. |
| public final ByteIterator | Returns: the limited byte iteratorthe number of bytes size)Return a copy of this iterator which is limited to the given number of bytes after the current one. |
| public abstract int | Returns: the next byteRedeclares org. |
| public static ByteIterator | Returns: the byte iterator (notnull)the byte buffer (must not be buffer)null)Get a byte iterator for a byte buffer. |
| public static ByteIterator | Returns: the byte iteratorthe array bytes)Get a byte iterator for a byte array. |
| public static ByteIterator | Returns: the byte iteratorthe array bytes, final int the array offset offs, final int the number of bytes to include len)Get a byte iterator for a byte array. |
| public static ByteIterator | Returns: the byte iteratorthe array bytes, final int the array offset offs, final int the number of bytes to include len, final int[] the interleave table to use interleave)Get a byte iterator for a byte array with interleave. |
| public static ByteIterator | Returns: the byte iteratorthe array bytes, final int[] the interleave table to use interleave)Get a byte iterator for a byte array with interleave. |
| public static ByteIterator | Returns: a concatenated iteratorthe iterators array (must not be iterators)null or contain null elements)Get a concatenated byte iterator. |
| public abstract int | Returns: the next byteRedeclares org. |
| public abstract int | Returns: the previous byteRedeclares org. |
| public abstract int | Returns: the previous byteRedeclares org. |
| public ByteIterator | |
| public void | |
| public void | |
| public void | |
| public boolean |
| EMPTY | back to summary |
|---|---|
| public static final ByteIterator EMPTY The empty byte iterator. | |
| NO_BYTES | back to summary |
|---|---|
| private static final byte[] NO_BYTES | |
| OP_BUFFER | back to summary |
|---|---|
| private static final ThreadLocal<byte[]> OP_BUFFER | |
| OP_BUFFER_SIZE | back to summary |
|---|---|
| private static final int OP_BUFFER_SIZE | |
| ByteIterator | back to summary |
|---|---|
| pack-priv ByteIterator() | |
| appendTo | back to summary |
|---|---|
| public ByteStringBuilder appendTo(final ByteStringBuilder builder) | |
| asInputStream | back to summary |
|---|---|
| public final InputStream asInputStream() Get this iterator as an input stream.
| |
| asLatin1String | back to summary |
|---|---|
| public CodePointIterator asLatin1String() Get this byte iterator as a Latin-1 string.
| |
| asUtf8String | back to summary |
|---|---|
| public CodePointIterator asUtf8String() Get this byte iterator as a UTF-8 string.
| |
| base32Encode | back to summary |
|---|---|
| public CodePointIterator base32Encode(final Base32Alphabet alphabet, final boolean addPadding) Base32-encode the current stream.
| |
| base32Encode | back to summary |
|---|---|
| public CodePointIterator base32Encode(final Base32Alphabet alphabet) Base32-encode the current stream.
| |
| base32Encode | back to summary |
|---|---|
| public CodePointIterator base32Encode() Base32-encode the current stream.
| |
| base64Encode | back to summary |
|---|---|
| public CodePointIterator base64Encode(final Base64Alphabet alphabet, final boolean addPadding) Base64-encode the current stream.
| |
| base64Encode | back to summary |
|---|---|
| public CodePointIterator base64Encode(final Base64Alphabet alphabet) Base64-encode the current stream.
| |
| base64Encode | back to summary |
|---|---|
| public CodePointIterator base64Encode() Base64-encode the current stream.
| |
| contentEquals | back to summary |
|---|---|
| public final boolean contentEquals(ByteIterator 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. If the contents are equal, the iterators will both be positioned at the end of their contents.
| |
| delimitedBy | back to summary |
|---|---|
| public final ByteIterator delimitedBy(final int... delims) Get a sub-iterator that is delimited by the given bytes. The returned iterator offset starts at 0 and cannot
be backed up before that point. The returned iterator will return
| |
| doFinal | back to summary |
|---|---|
| public ByteIterator doFinal(MessageDigest digest) | |
| doFinal | back to summary |
|---|---|
| public ByteIterator doFinal(Mac mac) | |
| drain | back to summary |
|---|---|
| public byte[] drain() Drain all the remaining bytes in this iterator.
| |
| drain | back to summary |
|---|---|
| public byte[] drain(int count) Drain up to
| |
| drain | back to summary |
|---|---|
| public int drain(byte[] dst) Drains up to
The number of bytes actually drained is returned as an integer. Unlike
| |
| drain | back to summary |
|---|---|
| public int drain(byte[] dst, int offs, int len) Drains up to
The number of bytes actually drained is returned as an integer. Unlike
| |
| drainAll | back to summary |
|---|---|
| public byte[] drainAll(int count) throws NoSuchElementException Drain exactly
| |
| drainTo | back to summary |
|---|---|
| public ByteArrayOutputStream drainTo(ByteArrayOutputStream stream) Drain all the remaining bytes in this iterator to the given stream.
| |
| drainToLatin1 | back to summary |
|---|---|
| public String drainToLatin1(int count) Convenience method to directly drain a certain number of bytes to a Latin-1 string. If fewer than
| |
| drainToUtf8 | back to summary |
|---|---|
| public String drainToUtf8(int count) Convenience method to directly drain a certain number of bytes to a UTF-8 string. If fewer than
| |
| getBE16 | back to summary |
|---|---|
| public int getBE16() throws NoSuchElementException | |
| getBE32 | back to summary |
|---|---|
| public int getBE32() throws NoSuchElementException | |
| getBE64 | back to summary |
|---|---|
| public long getBE64() throws NoSuchElementException | |
| getIndex | back to summary |
|---|---|
| public abstract long getIndex() Redeclares org. Get the current offset, in bytes.
| |
| getLE16 | back to summary |
|---|---|
| public int getLE16() throws NoSuchElementException | |
| getLE32 | back to summary |
|---|---|
| public int getLE32() throws NoSuchElementException | |
| getLE64 | back to summary |
|---|---|
| public long getLE64() throws NoSuchElementException | |
| getPackedBE32 | back to summary |
|---|---|
| public int getPackedBE32() throws NoSuchElementException | |
| getPackedBE64 | back to summary |
|---|---|
| public long getPackedBE64() throws NoSuchElementException | |
| hasNext | back to summary |
|---|---|
| public abstract boolean hasNext() Redeclares org. Determine if there are more bytes after the current byte.
| |
| hasPrevious | back to summary |
|---|---|
| public abstract boolean hasPrevious() Redeclares org. Determine if there are more bytes before the current byte.
| |
| hexEncode | back to summary |
|---|---|
| public CodePointIterator hexEncode(boolean toUpperCase) Hex-encode the current stream.
| |
| hexEncode | back to summary |
|---|---|
| public CodePointIterator hexEncode() Hex-encode the current stream.
| |
| interleavedWith | back to summary |
|---|---|
| public ByteIterator interleavedWith(final byte[] table) Get a byte iterator which translates this byte iterator through an interleaving table. The table should be 256 entries in size or exceptions may result.
| |
| interleavedWith | back to summary |
|---|---|
| public ByteIterator interleavedWith(final int[] table) Get a byte iterator which translates this byte iterator through an interleaving table. The table should be 256 entries in size or exceptions may result.
| |
| limitedTo | back to summary |
|---|---|
| public final ByteIterator limitedTo(final int size) Return a copy of this iterator which is limited to the given number of bytes 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 byte.
| |
| ofByteBuffer | back to summary |
|---|---|
| public static ByteIterator ofByteBuffer(ByteBuffer buffer) Get a byte iterator for a byte buffer. The buffer's position is kept up to date with the number of bytes consumed by the iterator. The iterator cannot be moved before the position that the buffer had when the iterator was constructed (this position is considered the zero offset).
| |
| ofBytes | back to summary |
|---|---|
| public static ByteIterator ofBytes(final byte... bytes) Get a byte iterator for a byte array.
| |
| ofBytes | back to summary |
|---|---|
| public static ByteIterator ofBytes(final byte[] bytes, final int offs, final int len) Get a byte iterator for a byte array.
| |
| ofBytes | back to summary |
|---|---|
| public static ByteIterator ofBytes(final byte[] bytes, final int offs, final int len, final int[] interleave) Get a byte iterator for a byte array with interleave.
| |
| ofBytes | back to summary |
|---|---|
| public static ByteIterator ofBytes(final byte[] bytes, final int[] interleave) Get a byte iterator for a byte array with interleave.
| |
| ofIterators | back to summary |
|---|---|
| public static ByteIterator ofIterators(ByteIterator... iterators) Get a concatenated byte iterator. The array and the byte iterators in the array must not be modified or inconsistent behavior will result.
| |
| peekNext | back to summary |
|---|---|
| public abstract int peekNext() throws NoSuchElementException Redeclares org. Peek at the next byte without advancing.
| |
| peekPrevious | back to summary |
|---|---|
| public abstract int peekPrevious() throws NoSuchElementException Redeclares org. Peek at the previous byte without moving backwards.
| |
| previous | back to summary |
|---|---|
| public abstract int previous() throws NoSuchElementException Redeclares org. Get the previous byte.
| |
| sign | back to summary |
|---|---|
| public ByteIterator sign(Signature signature) throws SignatureException | |
| update | back to summary |
|---|---|
| public void update(MessageDigest digest) | |
| update | back to summary |
|---|---|
| public void update(Mac mac) | |
| update | back to summary |
|---|---|
| public void update(Signature signature) throws SignatureException | |
| verify | back to summary |
|---|---|
| public boolean verify(Signature signature) throws SignatureException | |