public final class ReadOnlyBytes extends Bytes
Bytes created by calling Bytes.readOnly().
Read-only Bytes does not have access to the internal byte array (array()
will throw an exception). Transformers will always create a copy and keep the
read-only status.
| Modifier and Type | Method and Description |
|---|---|
byte[] |
array()
The reference of te internal byte-array.
|
boolean |
isReadOnly()
Check if this instance is read only
|
allocate, allocate, and, and, append, append, append, append, append, append, append, append, append, append, appendNullSafe, bitAt, buffer, byteAt, byteOrder, byteOrder, charAt, compareTo, contains, copy, copy, count, count, duplicate, empty, encode, encodeBase32, encodeBase36, encodeBase64, encodeBase64, encodeBase64Url, encodeBinary, encodeCharset, encodeCharsetToBytes, encodeDec, encodeHex, encodeHex, encodeOctal, encodeRadix, encodeUtf8, encodeUtf8ToBytes, endsWith, entropy, equals, equals, equals, equals, equalsConstantTime, equalsContent, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, fromNullSafe, hash, hashCode, hashMd5, hashSha1, hashSha256, indexOf, indexOf, indexOf, indexOf, inputStream, intAt, isEmpty, isMutable, iterator, lastIndexOf, leftShift, length, lengthBit, longAt, mutable, not, or, or, parse, parseBase32, parseBase36, parseBase64, parseBinary, parseDec, parseHex, parseOctal, parseRadix, random, random, readOnly, resize, resize, reverse, rightShift, shortAt, startsWith, switchBit, switchBit, toBigInteger, toBitSet, toBoxedArray, toByte, toChar, toCharArray, toCharArray, toDouble, toDoubleArray, toFloat, toFloatArray, toInt, toIntArray, toList, toLong, toLongArray, toShort, toString, toUnsignedByte, toUUID, transform, unsecureRandom, unsecureRandom, unsignedByteAt, validate, validateNotOnlyZeros, wrap, wrap, wrap, wrapNullSafe, xor, xorclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic boolean isReadOnly()
BytesisReadOnly in class Bytespublic byte[] array()
BytesModifications to this bytes's content will cause the returned array's content to be modified, and vice versa.
Copyright © 2017–2021. All rights reserved.