Package org.wildfly.common.bytes
Class ByteStringBuilder
java.lang.Object
org.wildfly.common.bytes.ByteStringBuilder
A builder for byte arrays.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(boolean b) append(byte b) append(byte[] bytes) append(byte[] bytes, int offs, int len) append(char c) append(CharSequence s, int offs, int len) append(ByteStringBuilder other) append(ByteIterator iterator) appendAscii(CodePointIterator iterator) appendBE(int i) appendBE(long l) appendBE(short s) appendDigestResult(MessageDigest messageDigest) appendLatin1(CharSequence s, int offs, int len) appendLatin1(String s, int offs, int len) appendLatin1(CodePointIterator iterator) appendNumber(int i) appendNumber(long l) appendPackedUnsignedBE(int v) appendPackedUnsignedBE(long v) appendUtf8(CodePointIterator iterator) appendUtf8Raw(int codePoint) bytebyteAt(int index) intcapacity()booleancontentEquals(byte[] other) booleancontentEquals(byte[] other, int offs, int length) iterate()intlength()voidsetLength(int newLength) byte[]toArray()updateDigest(MessageDigest messageDigest)
-
Constructor Details
-
ByteStringBuilder
public ByteStringBuilder() -
ByteStringBuilder
public ByteStringBuilder(byte[] content)
-
-
Method Details
-
append
-
append
-
append
-
appendUtf8Raw
-
appendUtf8
-
appendLatin1
-
appendAscii
-
append
-
append
-
append
-
appendLatin1
-
appendLatin1
-
appendLatin1
-
appendLatin1
-
append
-
append
-
append
-
append
-
appendPackedUnsignedBE
-
appendPackedUnsignedBE
-
appendBE
-
appendNumber
-
appendBE
-
appendNumber
-
appendBE
-
appendObject
-
append
-
updateDigest
-
appendDigestResult
- Throws:
DigestException
-
updateMac
-
toArray
public byte[] toArray() -
byteAt
public byte byteAt(int index) -
capacity
public int capacity() -
length
public int length() -
setLength
public void setLength(int newLength) -
contentEquals
public boolean contentEquals(byte[] other) -
contentEquals
public boolean contentEquals(byte[] other, int offs, int length) -
iterate
-