Modifier and Type | Class and Description |
---|---|
static class |
BytesTransformer.BitSwitchTransformer
Switches bits on specific position of an array
|
static class |
BytesTransformer.BitWiseOperatorTransformer
Simple transformer for bitwise operations on
Bytes instances |
static class |
BytesTransformer.ConcatTransformer
Simple transformer for bitwise operations on
Bytes instances |
static class |
BytesTransformer.CopyTransformer
Creates a new instance with a copy of the internal byte array and all other attributes.
|
static class |
BytesTransformer.MessageDigestTransformer
Converts to hash
|
static class |
BytesTransformer.NegateTransformer
Simple transformer for bitwise unary negation on
Bytes instances |
static class |
BytesTransformer.ResizeTransformer
Copies the specified array, truncating or padding with zeros (if necessary)
so the copy has the specified length.
|
static class |
BytesTransformer.ReverseTransformer
Reverses the internal byte array
|
static class |
BytesTransformer.ShiftTransformer
Simple transformer for bit shifting
Bytes instances |
static class |
BytesTransformers.ChecksumTransformer
Adds or converts to arbitrary checksum
|
static class |
BytesTransformers.GzipCompressor
Byte compression with gzip
|
static class |
BytesTransformers.HmacTransformer
HMAC transformer
|
static class |
BytesTransformers.ShuffleTransformer
Shuffles the internal byte array
|
static class |
BytesTransformers.SortTransformer
Sorts the internal byte array with given
Comparator |
Modifier and Type | Method and Description |
---|---|
static BytesTransformer |
BytesTransformers.checksum(Checksum checksum,
BytesTransformers.ChecksumTransformer.Mode mode,
int checksumLengthByte)
Create a
BytesTransformer which transforms to 4 byte Crc32 checksum of given bytes |
static BytesTransformer |
BytesTransformers.checksumAppendCrc32()
Create a
BytesTransformer which appends 4 byte Crc32 checksum to given bytes |
static BytesTransformer |
BytesTransformers.checksumCrc32()
Create a
BytesTransformer which transforms to 4 byte Crc32 checksum of given bytes |
static BytesTransformer |
BytesTransformers.compressGzip()
Create a
BytesTransformer which gzip compresses the internal byte array |
static BytesTransformer |
BytesTransformers.decompressGzip()
Create a
BytesTransformer which gzip decompresses the internal byte array |
static BytesTransformer |
BytesTransformers.hmac(byte[] key,
String algorithmName)
Create a
BytesTransformer which returns the HMAC with given key, algorithm of the target byte array |
static BytesTransformer |
BytesTransformers.hmacSha1(byte[] key)
Create a
BytesTransformer which returns the HMAC-SHA1 with given key, of the target byte array |
static BytesTransformer |
BytesTransformers.hmacSha256(byte[] key)
Create a
BytesTransformer which returns the HMAC-SHA256 with given key, of the target byte array |
static BytesTransformer |
BytesTransformers.shuffle()
Create a
BytesTransformer which shuffles the individual bytes in an array
with an SecureRandom instance. |
static BytesTransformer |
BytesTransformers.shuffle(Random random)
Create a
BytesTransformer which shuffles the individual bytes in an array |
static BytesTransformer |
BytesTransformers.sort()
Create a
BytesTransformer which sorts the internal byte array with it's natural ordering treating
each byte as signed byte (-128...127). |
static BytesTransformer |
BytesTransformers.sort(Comparator<Byte> comparator)
Create a
BytesTransformer which sorts the internal byte array according to given comparator. |
static BytesTransformer |
BytesTransformers.sortUnsigned()
Create a
BytesTransformer which sorts the internal byte array with it's natural ordering treating
each byte as unsigned byte (0...255). |
Modifier and Type | Method and Description |
---|---|
Bytes |
Bytes.transform(BytesTransformer transformer)
Generic transformation of this instance.
|
Copyright © 2017–2018. All rights reserved.