public class ByteArrayType extends IntegralArrayType<byte[],Byte>
byte[]
primitive array type. Does not support null arrays.ARRAY_SUFFIX, MAX_DIMENSIONS
name, NAME_PATTERN, REFERENCE_TYPE_NAME, signature, typeToken
Constructor and Description |
---|
ByteArrayType() |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
createArray(List<Byte> elements)
Create a new array instance containing the given elements.
|
protected byte[] |
decode(DataInputStream input,
int numBytes) |
protected void |
encode(byte[] array,
DataOutputStream output) |
protected Byte |
getArrayElement(byte[] array,
int index)
Get an element from the given array.
|
protected int |
getArrayLength(byte[] array)
Get the length of the given array.
|
hasPrefix0xff, read, skip, write
checkDecodeLength, fromParseableString, fromString, toParseableString, toParseableString, toString, toString
compare, convert, equals, getDimensions, hashCode
validate
genericizeForIndex, getDefaultValue, getDefaultValueObject, getEncodingSignature, getKeyRange, getName, getTypeToken, hasPrefix0x00, toString, validateAndWrite
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected int getArrayLength(byte[] array)
ArrayType
getArrayLength
in class ArrayType<byte[],Byte>
array
- non-null arrayprotected Byte getArrayElement(byte[] array, int index)
ArrayType
getArrayElement
in class ArrayType<byte[],Byte>
array
- non-null arrayindex
- index of target element in array
index
protected byte[] createArray(List<Byte> elements)
ArrayType
createArray
in class ArrayType<byte[],Byte>
elements
- content for the new arrayprotected void encode(byte[] array, DataOutputStream output) throws IOException
encode
in class Base64ArrayType<byte[],Byte>
IOException
protected byte[] decode(DataInputStream input, int numBytes) throws IOException
decode
in class Base64ArrayType<byte[],Byte>
IOException
Copyright © 2022. All rights reserved.