public class ArrayByteIterable extends ByteIterableBase
ByteIterable.| Modifier and Type | Class and Description |
|---|---|
static class |
ArrayByteIterable.EmptyIterable |
class |
ArrayByteIterable.Iterator |
| Modifier and Type | Field and Description |
|---|---|
static ArrayByteIterable.EmptyIterable |
EMPTY |
bytes, length, SINGLE_BYTESEMPTY_BYTES, EMPTY_ITERATOR| Constructor and Description |
|---|
ArrayByteIterable(@NotNull byte[] bytes) |
ArrayByteIterable(byte[] bytes,
int length) |
ArrayByteIterable(byte firstByte,
@NotNull ByteIterable bi) |
ArrayByteIterable(byte firstByte,
@NotNull ByteIterator it) |
ArrayByteIterable(@NotNull ByteIterable bi) |
ArrayByteIterable(@NotNull ByteIterator it) |
ArrayByteIterable(@NotNull ByteIterator it,
int size) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillBytes() |
static ArrayByteIterable |
fromByte(byte b) |
byte[] |
getBytesUnsafe() |
static ArrayByteIterable.Iterator |
getEmptyIterator() |
protected ArrayByteIterable.Iterator |
getIterator() |
ArrayByteIterable.Iterator |
iterator() |
ArrayByteIterable.Iterator |
iterator(int offset) |
void |
setBytes(@NotNull byte[] bytes) |
void |
writeTo(@NotNull LightOutputStream output) |
compareTo, equals, fillBytes, fillBytes, fillBytes, getLength, hashCode, readIterator, subIterable, toString, toStringpublic static final ArrayByteIterable.EmptyIterable EMPTY
public ArrayByteIterable(@NotNull
@NotNull ByteIterable bi)
public ArrayByteIterable(@NotNull
@NotNull ByteIterator it)
public ArrayByteIterable(@NotNull
@NotNull ByteIterator it,
int size)
public ArrayByteIterable(byte firstByte,
@NotNull
@NotNull ByteIterable bi)
public ArrayByteIterable(byte firstByte,
@NotNull
@NotNull ByteIterator it)
public ArrayByteIterable(byte[] bytes,
int length)
public ArrayByteIterable(@NotNull
@NotNull byte[] bytes)
public ArrayByteIterable.Iterator iterator()
iterator in interface ByteIterableiterator in class ByteIterableBasepublic ArrayByteIterable.Iterator iterator(int offset)
public void setBytes(@NotNull
@NotNull byte[] bytes)
public byte[] getBytesUnsafe()
getBytesUnsafe in interface ByteIterablegetBytesUnsafe in class ByteIterableBaseByteIterable. May return array with length greater than ByteIterable.getLength().public void writeTo(@NotNull
@NotNull LightOutputStream output)
public static ArrayByteIterable.Iterator getEmptyIterator()
protected ArrayByteIterable.Iterator getIterator()
getIterator in class ByteIterableBaseprotected void fillBytes()
fillBytes in class ByteIterableBasepublic static ArrayByteIterable fromByte(byte b)