Skip navigation links
A B C D E F H I L M N O P R S T W X 

A

allocate(int) - Static method in class at.favre.lib.bytes.Bytes
Creates a new instance with an empty array filled 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.
append(Bytes) - Method in class at.favre.lib.bytes.Bytes
Creates a new instance with the current array appended with the provided data (ie. append at the end)
append(byte) - Method in class at.favre.lib.bytes.Bytes
Creates a new instance with the current array appended with the provided data (ie. append at the end)
append(short) - Method in class at.favre.lib.bytes.Bytes
Creates a new instance with the current array appended with the provided data (ie. append at the end)
append(int) - Method in class at.favre.lib.bytes.Bytes
Creates a new instance with the current array appended with the provided data (ie. append at the end)
append(long) - Method in class at.favre.lib.bytes.Bytes
Creates a new instance with the current array appended with the provided data (ie. append at the end)
append(byte[]) - Method in class at.favre.lib.bytes.Bytes
Creates a new instance with the current array appended with the provided data (ie. append at the end)
array() - Method in class at.favre.lib.bytes.Bytes
The reference of te internal byte-array.
at.favre.lib.bytes - package at.favre.lib.bytes
 

B

Base64Encoding() - Constructor for class at.favre.lib.bytes.ByteToTextEncoding.Base64Encoding
 
bigInteger() - Method in class at.favre.lib.bytes.Bytes
The internal byte array wrapped in a BigInteger instance.
BitWiseOperatorTransformer(byte[], BytesTransformer.BitWiseOperatorTransformer.Mode) - Constructor for class at.favre.lib.bytes.BytesTransformer.BitWiseOperatorTransformer
 
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 or 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.
BytesTransformer - Interface in at.favre.lib.bytes
Interface for transforming Bytes
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.NegateTransformer - Class in at.favre.lib.bytes
Simple transformer for bitwise unary negation on Bytes instances
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
ByteToTextEncoding - Class in at.favre.lib.bytes
 
ByteToTextEncoding() - Constructor for class at.favre.lib.bytes.ByteToTextEncoding
 
ByteToTextEncoding.Base64Encoding - Class in at.favre.lib.bytes
 
ByteToTextEncoding.BaseRadix - Class in at.favre.lib.bytes
 
ByteToTextEncoding.Decoder - Interface in at.favre.lib.bytes
 
ByteToTextEncoding.Encoder - Interface in at.favre.lib.bytes
 
ByteToTextEncoding.Hex - Class in at.favre.lib.bytes
 

C

compareTo(Bytes) - Method in class at.favre.lib.bytes.Bytes
Compares this bytes instance to another.
ConcatTransformer(byte[]) - Constructor for class at.favre.lib.bytes.BytesTransformer.ConcatTransformer
 
copy() - Method in class at.favre.lib.bytes.Bytes
Creates a new instance with a copy of the internal byte array.
copy(int, int) - Method in class at.favre.lib.bytes.Bytes
Creates a new instance with a copy of the internal byte array.
count(byte) - Method in class at.favre.lib.bytes.Bytes
Traverses the internal byte array counts the occurrences of given byte.

D

decode(String) - Method in class at.favre.lib.bytes.ByteToTextEncoding.Base64Encoding
 
decode(String) - Method in class at.favre.lib.bytes.ByteToTextEncoding.BaseRadix
 
decode(String) - Method in interface at.favre.lib.bytes.ByteToTextEncoding.Decoder
 
decode(String) - Method in class at.favre.lib.bytes.ByteToTextEncoding.Hex
 
duplicate() - Method in class at.favre.lib.bytes.Bytes
Create a new instance which shares the same underlying array

E

encode(ByteToTextEncoding.Encoder) - Method in class at.favre.lib.bytes.Bytes
Encode the internal byte-array with given encoder.
encode(byte[]) - Method in class at.favre.lib.bytes.ByteToTextEncoding.Base64Encoding
 
encode(byte[]) - Method in class at.favre.lib.bytes.ByteToTextEncoding.BaseRadix
 
encode(byte[]) - Method in interface at.favre.lib.bytes.ByteToTextEncoding.Encoder
 
encode(byte[]) - Method in class at.favre.lib.bytes.ByteToTextEncoding.Hex
 
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. 2 characters represent a single byte, it therefore has an efficiency of 50%.
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
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
 

F

fill(byte) - Method in class at.favre.lib.bytes.MutableBytes
Fills the internal byte array with provided byte
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(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 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(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(long) - Static method in class at.favre.lib.bytes.Bytes
Creates a new instance from given 8 byte long.
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(InputStream) - Static method in class at.favre.lib.bytes.Bytes
Reads given input stream and creates a new instance from read data
from(String) - Static method in class at.favre.lib.bytes.Bytes
Creates a new instance from given utf-8 encoded string
from(String, Charset) - Static method in class at.favre.lib.bytes.Bytes
Creates a new instance from given string

H

hashCode() - Method in class at.favre.lib.bytes.Bytes
 
Hex() - Constructor for class at.favre.lib.bytes.ByteToTextEncoding.Hex
 
Hex(boolean) - Constructor for class at.favre.lib.bytes.ByteToTextEncoding.Hex
 

I

indexOf(byte) - Method in class at.favre.lib.bytes.Bytes
Returns the index of the first appearance of the value target in array.
indexOf(byte[]) - Method in class at.favre.lib.bytes.Bytes
Returns the start position of the first occurrence of the specified target within array, or -1 if there is no such occurrence.
isEmpty() - Method in class at.favre.lib.bytes.Bytes
Checks the internal array for emptiness.

L

lastIndexOf(byte) - Method in class at.favre.lib.bytes.Bytes
Returns the index of the last appearance of the value target in array.
leftShift(int) - Method in class at.favre.lib.bytes.Bytes
Bitwise left shifting of internal byte array.
length() - Method in class at.favre.lib.bytes.Bytes
The byte length of the underlying byte array.
lengthBit() - Method in class at.favre.lib.bytes.Bytes
The bit length of the underlying byte array.

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.

N

negate() - Method in class at.favre.lib.bytes.Bytes
Bitwise negate operation on the whole internal byte array.
NegateTransformer() - Constructor for class at.favre.lib.bytes.BytesTransformer.NegateTransformer
 

O

or(Bytes) - Method in class at.favre.lib.bytes.Bytes
Bitwise OR operation on the whole internal byte array.
or(byte[]) - Method in class at.favre.lib.bytes.Bytes
Bitwise OR operation on the whole internal byte array.
outputStream() - Method in class at.favre.lib.bytes.Bytes
Creates an output stream with the same backing data as the intern array of this instance
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.

P

parse(String, ByteToTextEncoding.Decoder) - Static method in class at.favre.lib.bytes.Bytes
Parsing of arbitrary encoded format
parseBase36(String) - Static method in class at.favre.lib.bytes.Bytes
Parsing of base36 encoded byte arrays.
parseBase64(String) - Static method in class at.favre.lib.bytes.Bytes
Parsing of base64 encoded byte arrays.
parseDec(String) - Static method in class at.favre.lib.bytes.Bytes
Parsing of decimal encoded byte arrays.
parseHex(String) - Static method in class at.favre.lib.bytes.Bytes
Parsing of base16/HEX encoded byte arrays.
parseOctal(String) - Static method in class at.favre.lib.bytes.Bytes
Parsing of octal encoded byte arrays.

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.
randomNonSecure(int) - 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.
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.
reverse() - Method in class at.favre.lib.bytes.Bytes
Reverses the internal byte array.
ReverseTransformer() - Constructor for class at.favre.lib.bytes.BytesTransformer.ReverseTransformer
 
rightShift(int) - Method in class at.favre.lib.bytes.Bytes
Bitwise right shifting of internal byte array.

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
ShiftTransformer(int, BytesTransformer.ShiftTransformer.Type) - Constructor for class at.favre.lib.bytes.BytesTransformer.ShiftTransformer
 
shuffle(Random) - Method in class at.favre.lib.bytes.Bytes
Shuffles the internal byte array See the considerations about possible in-place operation in transform(BytesTransformer).
shuffle() - Method in class at.favre.lib.bytes.Bytes
Shuffles the internal byte array with a new SecureRandom instance.
ShuffleTransformer(Random) - Constructor for class at.favre.lib.bytes.BytesTransformer.ShuffleTransformer
 
sort(Comparator<Byte>) - Method in class at.favre.lib.bytes.Bytes
Sorts the internal byte array according to given comparator.
sort() - Method in class at.favre.lib.bytes.Bytes
Sorts the internal byte array with it's natural ordering See the considerations about possible in-place operation in transform(BytesTransformer).
SortTransformer() - Constructor for class at.favre.lib.bytes.BytesTransformer.SortTransformer
 
SortTransformer(Comparator<Byte>) - Constructor for class at.favre.lib.bytes.BytesTransformer.SortTransformer
 

T

toBitSet() - Method in class at.favre.lib.bytes.Bytes
Returns a copy of the internal byte-array as BitSet type
toChar() - Method in class at.favre.lib.bytes.Bytes
If the underlying byte array is smaller than 2 byte / 16 bit returns unsigned two-complement representation for a Java char integer value.
toInt() - Method in class at.favre.lib.bytes.Bytes
If the underlying byte array is smaller than 4 byte / 32 bit returns signed two-complement representation for a Java signed integer value.
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 smaller than 8 byte / 64 bit returns signed two-complement representation for a Java signed long integer value.
toObjectArray() - Method in class at.favre.lib.bytes.Bytes
Returns a copy of the internal byte-array as boxed primitive array.
toShort() - Method in class at.favre.lib.bytes.Bytes
If the underlying byte array is smaller than 2 byte / 16 bit returns signed two-complement representation for a Java short integer value.
toString() - Method in class at.favre.lib.bytes.Bytes
A memory safe toString implementation, which only shows the byte length and at most 8 bytes preview in hex representation.
transform(BytesTransformer) - Method in class at.favre.lib.bytes.Bytes
Generic transformation of this instance.
transform(Bytes, boolean) - Method in class at.favre.lib.bytes.BytesTransformer.BitWiseOperatorTransformer
 
transform(Bytes, boolean) - Method in class at.favre.lib.bytes.BytesTransformer.ConcatTransformer
 
transform(Bytes, boolean) - Method in class at.favre.lib.bytes.BytesTransformer.NegateTransformer
 
transform(Bytes, boolean) - Method in class at.favre.lib.bytes.BytesTransformer.ReverseTransformer
 
transform(Bytes, boolean) - Method in class at.favre.lib.bytes.BytesTransformer.ShiftTransformer
 
transform(Bytes, boolean) - Method in class at.favre.lib.bytes.BytesTransformer.ShuffleTransformer
 
transform(Bytes, boolean) - Method in class at.favre.lib.bytes.BytesTransformer.SortTransformer
 
transform(Bytes, boolean) - Method in interface at.favre.lib.bytes.BytesTransformer
Transform given victim in place, overwriting its internal byte array

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.

X

xor(Bytes) - Method in class at.favre.lib.bytes.Bytes
Bitwise XOR operation on the whole internal byte array.
xor(byte[]) - Method in class at.favre.lib.bytes.Bytes
Bitwise XOR operation on the whole internal byte array.
A B C D E F H I L M N O P R S T W X 
Skip navigation links

Copyright © 2017. All rights reserved.