public final class MutableBytes extends Bytes
| Modifier and Type | Method and Description |
|---|---|
MutableBytes |
fill(byte fillByte)
Fills the internal byte array with provided byte
|
boolean |
isMutable()
Checks if instance is mutable
|
MutableBytes |
overwrite(byte[] newArray)
Uses given array to overwrite internal array
|
MutableBytes |
overwrite(byte[] newArray,
int offsetInternalArray)
Uses given array to overwrite internal array.
|
MutableBytes |
secureWipe()
Fills the internal byte array with random data provided by
SecureRandom |
MutableBytes |
secureWipe(SecureRandom random)
Fills the internal byte array with random data provided by given random instance
|
MutableBytes |
wipe()
Fills the internal byte array with all zeros
|
allocate, allocate, and, and, append, append, append, append, append, append, append, array, bigInteger, buffer, byteAt, byteOrder, byteOrder, compareTo, copy, copy, count, duplicate, encode, encodeBase36, encodeBase64, encodeBinary, encodeCharset, encodeDec, encodeHex, encodeHex, encodeOctal, encodeUtf8, entropy, equals, equalsContent, equalsContent, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, hashCode, indexOf, indexOf, inputStream, isEmpty, isReadOnly, lastIndexOf, leftShift, length, lengthBit, mutable, negate, or, or, parse, parseBase36, parseBase64, parseDec, parseHex, parseOctal, random, random, readOnly, resize, reverse, rightShift, shuffle, shuffle, sort, sort, switchBit, switchBit, toBitSet, toByte, toChar, toInt, toList, toLong, toObjectArray, toShort, toString, transform, validate, validateNotOnlyZeros, wrap, wrap, wrap, xor, xorpublic boolean isMutable()
BytesisMutable in interface AbstractBytesisMutable in class Bytespublic MutableBytes overwrite(byte[] newArray)
newArray - used to overwrite internalIndexOutOfBoundsException - if newArray.length > internal lengthpublic MutableBytes overwrite(byte[] newArray, int offsetInternalArray)
newArray - used to overwrite internaloffsetInternalArray - index of the internal array to start overwritingIndexOutOfBoundsException - if newArray.length + offsetInternalArray > internal lengthpublic MutableBytes wipe()
public MutableBytes fill(byte fillByte)
fillByte - to fill withpublic MutableBytes secureWipe()
SecureRandompublic MutableBytes secureWipe(SecureRandom random)
random - to generate entropyCopyright © 2017. All rights reserved.