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, 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, from, from, from, from, from, from, hashCode, indexOf, indexOf, inputStream, isEmpty, isMutable, lastIndexOf, leftShift, length, lengthBit, mutable, not, or, or, parse, parseBase36, parseBase64, parseDec, parseHex, parseOctal, random, random, readOnly, resize, reverse, rightShift, shuffle, shuffle, sort, sort, switchBit, switchBit, toBigInteger, toBitSet, toByte, toChar, toInt, toList, toLong, toObjectArray, toShort, toString, transform, validate, validateNotOnlyZeros, wrap, wrap, wrap, xor, xorpublic boolean isReadOnly()
BytesisReadOnly in interface AbstractBytesisReadOnly 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. All rights reserved.