A B C D E F H I L M N O P R S T U V W X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- allocate(int) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with an empty array filled with zeros.
- allocate(int) - Static method in class at.favre.lib.bytes.MutableBytes
-
Creates a new instance with an empty array filled with zeros.
- allocate(int, byte) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with an empty array filled with given defaultValue
- allocate(int, byte) - Static method in class at.favre.lib.bytes.MutableBytes
-
Creates a new instance with an empty array filled with given defaultValue
- and(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Bitwise AND operation on the whole internal byte array.
- and(Bytes) - Method in class at.favre.lib.bytes.Bytes
-
Bitwise AND operation on the whole internal byte array.
- and(BytesValidator...) - Static method in class at.favre.lib.bytes.BytesValidators
-
This will execute all passed validators and returns true if all return true (i.e.
- AND - at.favre.lib.bytes.BytesTransformer.BitWiseOperatorTransformer.Mode
- append(byte) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (i.e.
- append(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (i.e.
- append(byte[]...) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (i.e.
- append(char) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (i.e.
- append(int) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (i.e.
- append(long) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (i.e.
- append(short) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (i.e.
- append(Bytes) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (i.e.
- append(CharSequence) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided utf-8 encoded representation of this string
- append(CharSequence, Charset) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided string with provided encoding
- APPEND - at.favre.lib.bytes.BytesTransformers.ChecksumTransformer.Mode
-
Appends checksum to given byte array
- appendNullSafe(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (i.e.
- array() - Method in class at.favre.lib.bytes.Bytes
-
The reference of te internal byte-array.
- array() - Method in class at.favre.lib.bytes.ReadOnlyBytes
- at.favre.lib.bytes - module at.favre.lib.bytes
- at.favre.lib.bytes - package at.favre.lib.bytes
- atLeast(int) - Static method in class at.favre.lib.bytes.BytesValidators
-
Checks the length of a byte array
- atMost(int) - Static method in class at.favre.lib.bytes.BytesValidators
-
Checks the length of a byte array
B
- BinaryToTextEncoding - Interface in at.favre.lib.bytes
-
Interface for byte-to-text-encodings
- BinaryToTextEncoding.Base64Encoding - Class in at.favre.lib.bytes
-
Simple Base64 encoder
- BinaryToTextEncoding.BaseRadixNumber - Class in at.favre.lib.bytes
-
Simple radix encoder which internally uses
BigInteger.toString(int)
- BinaryToTextEncoding.Decoder - Interface in at.favre.lib.bytes
-
Interface for decoding encoded strings
- BinaryToTextEncoding.Encoder - Interface in at.favre.lib.bytes
-
Interface for encoding bytes
- BinaryToTextEncoding.EncoderDecoder - Interface in at.favre.lib.bytes
-
Unifies both interfaces
BinaryToTextEncoding.Encoder
andBinaryToTextEncoding.Decoder
- BinaryToTextEncoding.Hex - Class in at.favre.lib.bytes
-
Hex or Base16
- bitAt(int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the
bit
value as boolean at the specified index. - buffer() - Method in class at.favre.lib.bytes.Bytes
-
The internal byte array wrapped in a
ByteBuffer
instance. - byteAt(int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the
byte
value at the specified index. - byteOrder() - Method in class at.favre.lib.bytes.Bytes
-
Get the set byte order/endianness.
- byteOrder(ByteOrder) - Method in class at.favre.lib.bytes.Bytes
-
Set the byte order or endianness of this instance.
- Bytes - Class in at.favre.lib.bytes
-
"Bytes" is wrapper class for a byte-array that allows a lot of convenience operations on it: Creation from various source: arrays, primitives, parsed or random Encoding in many formats: hex, base64, etc. Helper functions like: indexOf, count, entropy Transformations like: append, reverse, xor, and, resize, ... Conversation to other types: primitives, List, object array, ByteBuffer, BigInteger, ... Validation: built-in or provided Making it mutable or read-only
- BytesFactory - Interface in at.favre.lib.bytes
-
Simple factory for creating
Bytes
instances - BytesTransformer - Interface in at.favre.lib.bytes
-
Interface for transforming
Bytes
- BytesTransformer.BitSwitchTransformer - Class in at.favre.lib.bytes
-
Switches bits on specific position of an array
- BytesTransformer.BitWiseOperatorTransformer - Class in at.favre.lib.bytes
-
Simple transformer for bitwise operations on
Bytes
instances - BytesTransformer.BitWiseOperatorTransformer.Mode - Enum in at.favre.lib.bytes
- BytesTransformer.ConcatTransformer - Class in at.favre.lib.bytes
-
Simple transformer for bitwise operations on
Bytes
instances - BytesTransformer.CopyTransformer - Class in at.favre.lib.bytes
-
Creates a new instance with a copy of the internal byte array and all other attributes.
- BytesTransformer.MessageDigestTransformer - Class in at.favre.lib.bytes
-
Converts to hash
- BytesTransformer.NegateTransformer - Class in at.favre.lib.bytes
-
Simple transformer for bitwise unary negation on
Bytes
instances - BytesTransformer.ResizeTransformer - Class in at.favre.lib.bytes
-
Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
- BytesTransformer.ResizeTransformer.Mode - Enum in at.favre.lib.bytes
- BytesTransformer.ReverseTransformer - Class in at.favre.lib.bytes
-
Reverses the internal byte array
- BytesTransformer.ShiftTransformer - Class in at.favre.lib.bytes
-
Simple transformer for bit shifting
Bytes
instances - BytesTransformer.ShiftTransformer.Type - Enum in at.favre.lib.bytes
- BytesTransformers - Class in at.favre.lib.bytes
-
Collection of additional
BytesTransformer
for more specific use cases - BytesTransformers.ChecksumTransformer - Class in at.favre.lib.bytes
-
Adds or converts to arbitrary checksum
- BytesTransformers.ChecksumTransformer.Mode - Enum in at.favre.lib.bytes
-
Definitions of the mode
- BytesTransformers.GzipCompressor - Class in at.favre.lib.bytes
-
Byte compression with gzip
- BytesTransformers.HmacTransformer - Class in at.favre.lib.bytes
-
HMAC transformer
- BytesTransformers.ShuffleTransformer - Class in at.favre.lib.bytes
-
Shuffles the internal byte array
- BytesTransformers.SortTransformer - Class in at.favre.lib.bytes
-
Sorts the internal byte array with given
Comparator
- BytesValidator - Interface in at.favre.lib.bytes
-
Interface for validating byte arrays
- BytesValidator.IdenticalContent - Class in at.favre.lib.bytes
-
Checks if a byte array contains only the same value
- BytesValidator.Length - Class in at.favre.lib.bytes
-
Validates for specific array length
- BytesValidator.Logical - Class in at.favre.lib.bytes
-
Logical operations over multiple validators
- BytesValidator.PrePostFix - Class in at.favre.lib.bytes
-
Checks if arrays end or start with given array
- BytesValidators - Class in at.favre.lib.bytes
-
Util and easy access for
BytesValidators
C
- charAt(int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the
char
value at the specified index. - checksum(Checksum, BytesTransformers.ChecksumTransformer.Mode, int) - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which transforms to 4 byte Crc32 checksum of given bytes - checksumAppendCrc32() - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which appends 4 byte Crc32 checksum to given bytes - checksumCrc32() - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which transforms to 4 byte Crc32 checksum of given bytes - close() - Method in class at.favre.lib.bytes.MutableBytes
- compareTo(Bytes) - Method in class at.favre.lib.bytes.Bytes
-
Compares this bytes instance to another.
- compressGzip() - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which gzip compresses the internal byte array - contains(byte) - Method in class at.favre.lib.bytes.Bytes
-
Checks if given byte value is contained in internal array
- copy() - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with a copy of the internal byte array and all other attributes.
- copy(int, int) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with a copy of the internal byte array and all other attributes.
- count(byte) - Method in class at.favre.lib.bytes.Bytes
-
Traverses the internal byte array counts the occurrences of given byte.
- count(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Traverses the internal byte array counts the occurrences of given pattern array.
D
- decode(CharSequence) - Method in class at.favre.lib.bytes.BinaryToTextEncoding.Base64Encoding
- decode(CharSequence) - Method in class at.favre.lib.bytes.BinaryToTextEncoding.BaseRadixNumber
- decode(CharSequence) - Method in interface at.favre.lib.bytes.BinaryToTextEncoding.Decoder
-
Decodes given encoded string
- decode(CharSequence) - Method in class at.favre.lib.bytes.BinaryToTextEncoding.Hex
- decompressGzip() - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which gzip decompresses the internal byte array - duplicate() - Method in class at.favre.lib.bytes.Bytes
-
Create a new instance which shares the same underlying array
E
- empty() - Static method in class at.favre.lib.bytes.Bytes
-
Creates a Byte instance with an internal empty byte array.
- encode(byte[], ByteOrder) - Method in class at.favre.lib.bytes.BinaryToTextEncoding.Base64Encoding
- encode(byte[], ByteOrder) - Method in class at.favre.lib.bytes.BinaryToTextEncoding.BaseRadixNumber
- encode(byte[], ByteOrder) - Method in interface at.favre.lib.bytes.BinaryToTextEncoding.Encoder
-
Encodes given array with given byte order to a string
- encode(byte[], ByteOrder) - Method in class at.favre.lib.bytes.BinaryToTextEncoding.Hex
- encode(BinaryToTextEncoding.Encoder) - Method in class at.favre.lib.bytes.Bytes
-
Encode the internal byte-array with given encoder.
- encodeBase32() - Method in class at.favre.lib.bytes.Bytes
-
Base32 RFC4648 string representation of the internal byte array (not Base32 hex alphabet extension)
- encodeBase36() - Method in class at.favre.lib.bytes.Bytes
-
Deprecated.use
Bytes.encodeRadix(int)
instead; will be removed in v1.0+ - encodeBase64() - Method in class at.favre.lib.bytes.Bytes
-
Base64 representation with padding.
- encodeBase64(boolean, boolean) - Method in class at.favre.lib.bytes.Bytes
-
Base64 representation with either padding or without and with or without URL and filename safe alphabet.
- encodeBase64Url() - Method in class at.favre.lib.bytes.Bytes
-
Base64 representation with padding.
- encodeBinary() - Method in class at.favre.lib.bytes.Bytes
-
Binary (aka "1" and "0") representation.
- encodeCharset(Charset) - Method in class at.favre.lib.bytes.Bytes
-
String representation with given charset encoding
- encodeCharsetToBytes(Charset) - Method in class at.favre.lib.bytes.Bytes
-
Byte array representation with given charset encoding.
- encodeDec() - Method in class at.favre.lib.bytes.Bytes
-
Decimal (0-9) representation.
- encodeHex() - Method in class at.favre.lib.bytes.Bytes
-
Base16 or Hex representation in lowercase.
- encodeHex(boolean) - Method in class at.favre.lib.bytes.Bytes
-
Base16 or Hex representation.
- encodeOctal() - Method in class at.favre.lib.bytes.Bytes
-
Octal (0-7) representation.
- encodeRadix(int) - Method in class at.favre.lib.bytes.Bytes
-
Encodes the internal array in given radix representation (e.g.
- encodeUtf8() - Method in class at.favre.lib.bytes.Bytes
-
UTF-8 representation of this byte array
- encodeUtf8ToBytes() - Method in class at.favre.lib.bytes.Bytes
-
UTF-8 representation of this byte array as byte array
- endsWith(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Checks if the given sub array is equal to the end of given array.
- endsWith(byte...) - Static method in class at.favre.lib.bytes.BytesValidators
-
Checks if the internal byte array ends with given bytes
- entropy() - Method in class at.favre.lib.bytes.Bytes
-
Calculates the entropy of the internal byte array.
- equals(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Compares the inner array with given array
- equals(Byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Compares the inner array with given array.
- equals(Object) - Method in class at.favre.lib.bytes.Bytes
-
Checks if this instance is equal to given other instance o
- equals(Object) - Method in class at.favre.lib.bytes.MutableBytes
- equals(ByteBuffer) - Method in class at.favre.lib.bytes.Bytes
-
Compares the inner array with the inner array of given ByteBuffer.
- equalsConstantTime(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Compares the inner array with given array.
- equalsContent(Bytes) - Method in class at.favre.lib.bytes.Bytes
-
Checks only for internal array content
- exactLength(int) - Static method in class at.favre.lib.bytes.BytesValidators
-
Checks the length of a byte array
F
- fill(byte) - Method in class at.favre.lib.bytes.MutableBytes
-
Fills the internal byte array with provided byte
- from(boolean) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given boolean.
- from(byte) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new single array element array instance from given byte
- from(byte[]) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given collections of single bytes.
- from(byte[]...) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given array of byte arrays
- from(byte[], int, int) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from a slice of given array
- from(byte, byte...) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given collections of single bytes.
- from(char) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given unsigned 2 byte char.
- from(char[]) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given char array using utf-8 encoding
- from(char[], Charset) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given char array.
- from(char[], Charset, int, int) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given char array with given range.
- from(double) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given 8 byte floating point number (double).
- from(double...) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given double array.
- from(float) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given 4 byte floating point number (float).
- from(float...) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given float array.
- from(int) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given 4 byte integer.
- from(int...) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given 4 byte integer array.
- from(long) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given 8 byte long.
- from(long...) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given 8 byte long array.
- from(short) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given 2 byte short.
- from(short...) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given 2 byte short array.
- from(Bytes...) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given array of byte arrays
- from(DataInput, int) - Static method in class at.favre.lib.bytes.Bytes
-
Reads given
DataInput
and creates a new instance from read data - from(File) - Static method in class at.favre.lib.bytes.Bytes
-
Reads given file and returns the byte content.
- from(File, int, int) - Static method in class at.favre.lib.bytes.Bytes
-
Reads given file and returns the byte content.
- from(InputStream) - Static method in class at.favre.lib.bytes.Bytes
-
Reads given whole input stream and creates a new instance from read data
- from(InputStream, int) - Static method in class at.favre.lib.bytes.Bytes
-
Reads given input stream up to maxLength and creates a new instance from read data.
- from(Byte[]) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given object byte array.
- from(CharSequence) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given utf-8 encoded string
- from(CharSequence, Charset) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given string
- from(CharSequence, Normalizer.Form) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from normalized form of given utf-8 encoded string
- from(BigInteger) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given
BigInteger
. - from(ByteBuffer) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given
ByteBuffer
. - from(CharBuffer) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given
CharBuffer
. - from(IntBuffer) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given
IntBuffer
. - from(BitSet) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given
BitSet
. - from(Collection<Byte>) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given collections.
- from(UUID) - Static method in class at.favre.lib.bytes.Bytes
-
Convert UUID to a newly generated 16 byte long array representation.
- fromNullSafe(byte[]) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given collections of single bytes.
H
- hash(String) - Method in class at.favre.lib.bytes.Bytes
-
Calculates hash with provided algorithm on the underlying byte array and returns a byte instance containing the hash.
- hashCode() - Method in class at.favre.lib.bytes.Bytes
- hashCode() - Method in class at.favre.lib.bytes.MutableBytes
- hashMd5() - Method in class at.favre.lib.bytes.Bytes
-
Calculates md5 on the underlying byte array and returns a byte instance containing the hash.
- hashSha1() - Method in class at.favre.lib.bytes.Bytes
-
Calculates sha1 on the underlying byte array and returns a byte instance containing the hash.
- hashSha256() - Method in class at.favre.lib.bytes.Bytes
-
Calculates sha256 on the underlying byte array and returns a byte instance containing the hash.
- Hex() - Constructor for class at.favre.lib.bytes.BinaryToTextEncoding.Hex
- Hex(boolean) - Constructor for class at.favre.lib.bytes.BinaryToTextEncoding.Hex
- hmac(byte[], String) - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which returns the HMAC with given key, algorithm of the target byte array - hmacSha1(byte[]) - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which returns the HMAC-SHA1 with given key, of the target byte array - hmacSha256(byte[]) - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which returns the HMAC-SHA256 with given key, of the target byte array
I
- immutable() - Method in class at.favre.lib.bytes.MutableBytes
-
Convert this instance to an immutable version with the same reference of the internal array and byte-order.
- indexOf(byte) - Method in class at.favre.lib.bytes.Bytes
-
Returns the index of the first appearance of the value
target
inarray
. - indexOf(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Returns the start position of the first occurrence of the specified
target
withinarray
, or-1
if there is no such occurrence. - indexOf(byte[], int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the start position of the first occurrence of the specified
target
withinarray
from given start index 'fromIndex', or-1
if there is no such occurrence. - indexOf(byte[], int, int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the start position of the first occurrence of the specified
target
withinarray
from given start index 'fromIndex' to given end index 'toIndex', or-1
if there is no such occurrence. - indexOf(byte, int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the index of the first appearance of the value
target
inarray
from given start index 'fromIndex'. - indexOf(byte, int, int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the index of the first appearance of the value
target
inarray
from given start index 'fromIndex' to given end index 'toIndex'. - inputStream() - Method in class at.favre.lib.bytes.Bytes
-
Creates an input stream with the same backing data as the intern array of this instance
- intAt(int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the
int
value at the specified index. - isEmpty() - Method in class at.favre.lib.bytes.Bytes
-
Checks the internal array for emptiness.
- isMutable() - Method in class at.favre.lib.bytes.Bytes
-
Checks if instance is mutable
- isMutable() - Method in class at.favre.lib.bytes.MutableBytes
- isReadOnly() - Method in class at.favre.lib.bytes.Bytes
-
Check if this instance is read only
- isReadOnly() - Method in class at.favre.lib.bytes.ReadOnlyBytes
- iterator() - Method in class at.favre.lib.bytes.Bytes
L
- lastIndexOf(byte) - Method in class at.favre.lib.bytes.Bytes
-
Returns the index of the last appearance of the value
target
inarray
. - LEFT_SHIFT - at.favre.lib.bytes.BytesTransformer.ShiftTransformer.Type
- leftShift(int) - Method in class at.favre.lib.bytes.Bytes
-
Bitwise left shifting of internal byte array (i.e.
- length() - Method in class at.favre.lib.bytes.Bytes
-
The byte length of the underlying byte array.
- Length(int, BytesValidator.Length.Mode) - Constructor for class at.favre.lib.bytes.BytesValidator.Length
- lengthBit() - Method in class at.favre.lib.bytes.Bytes
-
The bit length of the underlying byte array.
- Logical(List<BytesValidator>, BytesValidator.Logical.Operator) - Constructor for class at.favre.lib.bytes.BytesValidator.Logical
- longAt(int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the
long
value at the specified index.
M
- mutable() - Method in class at.favre.lib.bytes.Bytes
-
Returns a mutable version of this instance with sharing the same underlying byte-array.
- MutableBytes - Class in at.favre.lib.bytes
-
Mutable version of
Bytes
created by callingBytes.mutable()
.
N
- NegateTransformer() - Constructor for class at.favre.lib.bytes.BytesTransformer.NegateTransformer
- noneOf(byte) - Static method in class at.favre.lib.bytes.BytesValidators
-
Checks individual byte content
- not() - Method in class at.favre.lib.bytes.Bytes
-
Bitwise not operation on the whole internal byte array.
- not(BytesValidator) - Static method in class at.favre.lib.bytes.BytesValidators
-
This will negate the result of the passed validator
- notOnlyOf(byte) - Static method in class at.favre.lib.bytes.BytesValidators
-
Checks individual byte content
O
- onlyOf(byte) - Static method in class at.favre.lib.bytes.BytesValidators
-
Checks individual byte content
- or(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Bitwise OR operation on the whole internal byte array.
- or(Bytes) - Method in class at.favre.lib.bytes.Bytes
-
Bitwise OR operation on the whole internal byte array.
- or(BytesValidator...) - Static method in class at.favre.lib.bytes.BytesValidators
-
This will execute all passed validators and returns true if at least one returns true (i.e.
- OR - at.favre.lib.bytes.BytesTransformer.BitWiseOperatorTransformer.Mode
- overwrite(byte[]) - Method in class at.favre.lib.bytes.MutableBytes
-
Uses given array to overwrite internal array
- overwrite(byte[], int) - Method in class at.favre.lib.bytes.MutableBytes
-
Uses given array to overwrite internal array.
- overwrite(Bytes) - Method in class at.favre.lib.bytes.MutableBytes
-
Uses given Bytes array to overwrite internal array
- overwrite(Bytes, int) - Method in class at.favre.lib.bytes.MutableBytes
-
Uses given Bytes array to overwrite internal array.
P
- parse(CharSequence, BinaryToTextEncoding.Decoder) - Static method in class at.favre.lib.bytes.Bytes
-
Parsing of arbitrary encoded format
- parseBase32(CharSequence) - Static method in class at.favre.lib.bytes.Bytes
-
Parsing of base32/RFC 4648 encoded byte arrays.
- parseBase36(CharSequence) - Static method in class at.favre.lib.bytes.Bytes
-
Deprecated.use
Bytes.parseRadix(CharSequence, int)
with 36 instead; will be removed in v1.0+ - parseBase64(CharSequence) - Static method in class at.favre.lib.bytes.Bytes
-
Parsing of base64 encoded byte arrays.
- parseBinary(CharSequence) - Static method in class at.favre.lib.bytes.Bytes
-
Parses a big endian binary string (e.g.
- parseDec(CharSequence) - Static method in class at.favre.lib.bytes.Bytes
-
Parsing of decimal encoded byte arrays.
- parseHex(CharSequence) - Static method in class at.favre.lib.bytes.Bytes
-
Parsing of base16/HEX encoded byte arrays.
- parseOctal(CharSequence) - Static method in class at.favre.lib.bytes.Bytes
-
Parsing of octal encoded byte arrays.
- parseRadix(CharSequence, int) - Static method in class at.favre.lib.bytes.Bytes
-
Encodes with given radix string representation (e.g.
- PrePostFix(boolean, byte...) - Constructor for class at.favre.lib.bytes.BytesValidator.PrePostFix
R
- random(int) - Static method in class at.favre.lib.bytes.Bytes
-
A new instance with random bytes.
- random(int, Random) - Static method in class at.favre.lib.bytes.Bytes
-
A new instance with random bytes.
- readOnly() - Method in class at.favre.lib.bytes.Bytes
-
Returns a new read-only byte instance.
- ReadOnlyBytes - Class in at.favre.lib.bytes
-
The read-only version of
Bytes
created by callingBytes.readOnly()
. - resize(int) - Method in class at.favre.lib.bytes.Bytes
-
Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
- resize(int, BytesTransformer.ResizeTransformer.Mode) - Method in class at.favre.lib.bytes.Bytes
-
Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
- RESIZE_KEEP_FROM_MAX_LENGTH - at.favre.lib.bytes.BytesTransformer.ResizeTransformer.Mode
- RESIZE_KEEP_FROM_ZERO_INDEX - at.favre.lib.bytes.BytesTransformer.ResizeTransformer.Mode
- reverse() - Method in class at.favre.lib.bytes.Bytes
-
Reverses the internal bytes in the array (not bits in each byte)
- ReverseTransformer() - Constructor for class at.favre.lib.bytes.BytesTransformer.ReverseTransformer
- RIGHT_SHIFT - at.favre.lib.bytes.BytesTransformer.ShiftTransformer.Type
- rightShift(int) - Method in class at.favre.lib.bytes.Bytes
-
Bitwise unsigned/logical right shifting of internal byte array (i.e.
S
- secureWipe() - Method in class at.favre.lib.bytes.MutableBytes
-
Fills the internal byte array with random data provided by
SecureRandom
- secureWipe(SecureRandom) - Method in class at.favre.lib.bytes.MutableBytes
-
Fills the internal byte array with random data provided by given random instance
- setByteAt(int, byte) - Method in class at.favre.lib.bytes.MutableBytes
-
Sets new byte to given index
- shortAt(int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the
short
value at the specified index. - shuffle() - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which shuffles the individual bytes in an array with anSecureRandom
instance. - shuffle(Random) - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which shuffles the individual bytes in an array - sort() - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which sorts the internal byte array with its natural ordering treating each byte as signed byte (-128...127). - sort(Comparator<Byte>) - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which sorts the internal byte array according to given comparator. - sortUnsigned() - Static method in class at.favre.lib.bytes.BytesTransformers
-
Create a
BytesTransformer
which sorts the internal byte array with its natural ordering treating each byte as unsigned byte (0...255). - startsWith(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Checks if the given sub array is equal to the start of given array.
- startsWith(byte...) - Static method in class at.favre.lib.bytes.BytesValidators
-
Checks if the internal byte array starts with given bytes
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformer.BitSwitchTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformer.BitWiseOperatorTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformer.ConcatTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformer.CopyTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformer.MessageDigestTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformer.NegateTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformer.ResizeTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformer.ReverseTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformer.ShiftTransformer
- supportInPlaceTransformation() - Method in interface at.favre.lib.bytes.BytesTransformer
-
If this transformer supports transformation without creation a new array
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformers.ChecksumTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformers.GzipCompressor
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformers.HmacTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformers.ShuffleTransformer
- supportInPlaceTransformation() - Method in class at.favre.lib.bytes.BytesTransformers.SortTransformer
- switchBit(int) - Method in class at.favre.lib.bytes.Bytes
-
Returns a Byte whose value is equivalent to this Byte with the designated bit switched.
- switchBit(int, boolean) - Method in class at.favre.lib.bytes.Bytes
-
Returns a Byte whose value is equivalent to this Byte with the designated bit set to newBitValue.
T
- toBigInteger() - Method in class at.favre.lib.bytes.Bytes
-
The internal byte array wrapped in a
BigInteger
instance. - toBitSet() - Method in class at.favre.lib.bytes.Bytes
-
Returns a copy of the internal byte-array as
BitSet
type - toBoxedArray() - Method in class at.favre.lib.bytes.Bytes
-
Returns a copy of the internal byte-array as boxed primitive array.
- toByte() - Method in class at.favre.lib.bytes.Bytes
-
If the underlying byte array is exactly 1 byte / 8 bit long, returns signed two-complement representation for a Java byte value.
- toChar() - Method in class at.favre.lib.bytes.Bytes
-
If the underlying byte array is exactly 2 byte / 16 bit long, return unsigned two-complement representation for a Java char integer value.
- toCharArray() - Method in class at.favre.lib.bytes.Bytes
-
Decodes the internal byte array to UTF-8 char array.
- toCharArray(Charset) - Method in class at.favre.lib.bytes.Bytes
-
Decodes the internal byte array with given charset to a char array.
- toDouble() - Method in class at.favre.lib.bytes.Bytes
-
If the underlying byte array is exactly 8 byte / 64 bit long, return the representation for a Java double value.
- toDoubleArray() - Method in class at.favre.lib.bytes.Bytes
-
Converts the internal byte array to a double array, that is, every 8 bytes will be packed into a single double.
- toFloat() - Method in class at.favre.lib.bytes.Bytes
-
If the underlying byte array is exactly 4 byte / 32 bit long, return the representation for a Java float value.
- toFloatArray() - Method in class at.favre.lib.bytes.Bytes
-
Converts the internal byte array to a float array, that is, every 4 bytes will be packed into a single float.
- toInt() - Method in class at.favre.lib.bytes.Bytes
-
If the underlying byte array is exactly 4 byte / 32 bit long, return signed two-complement representation for a Java signed integer value.
- toIntArray() - Method in class at.favre.lib.bytes.Bytes
-
Converts the internal byte array to an int array, that is, every 4 bytes will be packed into a single int.
- toList() - Method in class at.favre.lib.bytes.Bytes
-
Returns a copy of the internal byte-array as
List
collection type This requires a time and space complexity of O(n). - toLong() - Method in class at.favre.lib.bytes.Bytes
-
If the underlying byte array is exactly 8 byte / 64 bit long, return signed two-complement representation for a Java signed long integer value.
- toLongArray() - Method in class at.favre.lib.bytes.Bytes
-
Converts the internal byte array to a long array, that is, every 8 bytes will be packed into a single long.
- toShort() - Method in class at.favre.lib.bytes.Bytes
-
If the underlying byte array is exactly 2 byte / 16 bit long, return signed two-complement representation for a Java short integer value.
- toShortArray() - Method in class at.favre.lib.bytes.Bytes
-
Converts the internal byte array to a short array, that is, every 2 bytes will be packed into a single short.
- toString() - Method in class at.favre.lib.bytes.Bytes
-
A constant length output toString() implementation, which only shows the byte length and at most 8 bytes preview in hex representation.
- toUnsignedByte() - Method in class at.favre.lib.bytes.Bytes
-
If the underlying byte array is exactly 1 byte / 8 bit long, returns unsigned two-complement representation for a Java byte value wrapped in an 4 byte int.
- toUUID() - Method in class at.favre.lib.bytes.Bytes
-
Creates a
UUID
instance of the internal byte array. - transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformer.BitSwitchTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformer.BitWiseOperatorTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformer.ConcatTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformer.CopyTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformer.MessageDigestTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformer.NegateTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformer.ResizeTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformer.ReverseTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformer.ShiftTransformer
- transform(byte[], boolean) - Method in interface at.favre.lib.bytes.BytesTransformer
-
Transform given victim in place, overwriting its internal byte array
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformers.ChecksumTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformers.GzipCompressor
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformers.HmacTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformers.ShuffleTransformer
- transform(byte[], boolean) - Method in class at.favre.lib.bytes.BytesTransformers.SortTransformer
- transform(BytesTransformer) - Method in class at.favre.lib.bytes.Bytes
-
Generic transformation of this instance.
- TRANSFORM - at.favre.lib.bytes.BytesTransformers.ChecksumTransformer.Mode
-
Transforms byte array and returns only checksum
U
- unsecureRandom(int) - Static method in class at.favre.lib.bytes.Bytes
-
A new instance with pseudo random bytes using an unsecure random number generator.
- unsecureRandom(int, long) - Static method in class at.favre.lib.bytes.Bytes
-
A new instance with pseudo random bytes using an unsecure random number generator.
- unsignedByteAt(int) - Method in class at.favre.lib.bytes.Bytes
-
Returns the unsigned
byte
value at the specified index as an int.
V
- validate(byte[]) - Method in class at.favre.lib.bytes.BytesValidator.IdenticalContent
- validate(byte[]) - Method in class at.favre.lib.bytes.BytesValidator.Length
- validate(byte[]) - Method in class at.favre.lib.bytes.BytesValidator.Logical
- validate(byte[]) - Method in class at.favre.lib.bytes.BytesValidator.PrePostFix
- validate(byte[]) - Method in interface at.favre.lib.bytes.BytesValidator
-
Validates given byte array
- validate(BytesValidator...) - Method in class at.favre.lib.bytes.Bytes
-
Applies all given validators and returns true if all of them return true (default AND concatenation).
- validateNotOnlyZeros() - Method in class at.favre.lib.bytes.Bytes
-
Checks the content of each byte for 0 values
- valueOf(String) - Static method in enum at.favre.lib.bytes.BytesTransformer.BitWiseOperatorTransformer.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum at.favre.lib.bytes.BytesTransformer.ResizeTransformer.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum at.favre.lib.bytes.BytesTransformer.ShiftTransformer.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum at.favre.lib.bytes.BytesTransformers.ChecksumTransformer.Mode
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum at.favre.lib.bytes.BytesTransformer.BitWiseOperatorTransformer.Mode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum at.favre.lib.bytes.BytesTransformer.ResizeTransformer.Mode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum at.favre.lib.bytes.BytesTransformer.ShiftTransformer.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum at.favre.lib.bytes.BytesTransformers.ChecksumTransformer.Mode
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- wipe() - Method in class at.favre.lib.bytes.MutableBytes
-
Fills the internal byte array with all zeros
- wrap(byte[]) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with given byte array.
- wrap(byte[], ByteOrder) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with given byte array.
- wrap(byte[], ByteOrder) - Method in interface at.favre.lib.bytes.BytesFactory
-
Create an instance with given array and order
- wrap(Bytes) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new reference backed by the same byte array.
- wrapNullSafe(byte[]) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with given byte array.
X
- xor(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Bitwise XOR operation on the whole internal byte array.
- xor(Bytes) - Method in class at.favre.lib.bytes.Bytes
-
Bitwise XOR operation on the whole internal byte array.
- XOR - at.favre.lib.bytes.BytesTransformer.BitWiseOperatorTransformer.Mode
All Classes All Packages