- AbstractBytes - Interface in at.favre.lib.bytes
-
Base interface for bytes
- allocate(int) - Static method in class at.favre.lib.bytes.Bytes
-
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
- and(Bytes) - Method in class at.favre.lib.bytes.Bytes
-
Bitwise AND operation on the whole internal byte array.
- and(byte[]) - 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.
- append(Bytes) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (ie.
- append(byte) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (ie.
- append(char) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (ie.
- append(short) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (ie.
- append(int) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (ie.
- append(long) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (ie.
- append(byte[]) - Method in class at.favre.lib.bytes.Bytes
-
Creates a new instance with the current array appended to the provided data (ie.
- 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 - 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
- Base64Encoding() - Constructor for class at.favre.lib.bytes.BinaryToTextEncoding.Base64Encoding
-
- 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.BaseRadix - Class in at.favre.lib.bytes
-
- 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.Hex - Class in at.favre.lib.bytes
-
Hex or Base16
- 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 an 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.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.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.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.ShuffleTransformer - Class in at.favre.lib.bytes
-
Shuffles the internal byte array
- BytesTransformer.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
-
- encode(byte[], ByteOrder) - Method in class at.favre.lib.bytes.BinaryToTextEncoding.Base64Encoding
-
- encode(byte[], ByteOrder) - Method in class at.favre.lib.bytes.BinaryToTextEncoding.BaseRadix
-
- 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.
- encodeBase36() - Method in class at.favre.lib.bytes.Bytes
-
Base36 (aka Hexatrigesimal) representation.
- encodeBase64() - 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
- 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.
- encodeUtf8() - Method in class at.favre.lib.bytes.Bytes
-
UTF-8 representation of this byte 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(Object) - Method in class at.favre.lib.bytes.Bytes
-
- equalsContent(Bytes) - Method in class at.favre.lib.bytes.Bytes
-
Checks only for internal array content
- equalsContent(byte[]) - 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
- fill(byte) - Method in class at.favre.lib.bytes.MutableBytes
-
Fills the internal byte array with provided byte
- from(byte[]) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given collections of single bytes.
- 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[]...) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given array of byte arrays
- from(Bytes...) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given array of byte arrays
- from(Collection<Byte>) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given collections.
- from(Byte[]) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given object byte array.
- from(byte) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new single array element array instance from given byte
- 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(short) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given 2 byte short.
- 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(ByteBuffer) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given ByteBuffer.
- from(BitSet) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given
BitSet.
- from(BigInteger) - Static method in class at.favre.lib.bytes.Bytes
-
- from(InputStream) - Static method in class at.favre.lib.bytes.Bytes
-
Reads given input stream 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(CharSequence) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given utf-8 encoded 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(CharSequence, Charset) - Static method in class at.favre.lib.bytes.Bytes
-
Creates a new instance from given string