Package dev.resteasy.client.util.common
Class ByteStringBuilder
java.lang.Object
dev.resteasy.client.util.common.ByteStringBuilder
This builder is not thread-safe.
- Author:
- David M. Lloyd, James R. Perkins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(boolean b) append(byte[] bytes) append(byte[] bytes, int offs, int len) append(char c) append(int i) append(long l) append(ByteStringBuilder other) appendLatin1(String s, int offs, int len) appendUSASCII(String s, int maxLen) appendUSASCII(String s, int offs, int len) appendUtf8Raw(int codePoint) bytebyteAt(int index) intcapacity()booleancontentEquals(byte[] other) booleancontentEquals(byte[] other, int offs, int length) static intgetUtf8LengthOf(int c) intlength()voidsetLength(int newLength) byte[]toArray()byte[]toArray(boolean clear) int
-
Constructor Details
-
ByteStringBuilder
public ByteStringBuilder(int len)
-
-
Method Details
-
append
-
append
-
getUtf8LengthOf
public static int getUtf8LengthOf(int c) -
appendUtf8Raw
-
append
-
append
-
appendUSASCII
-
appendUSASCII
-
appendUSASCII
-
appendLatin1
-
appendLatin1
-
append
-
append
-
write
-
append
-
append
-
append
-
append
-
toArray
public byte[] toArray() -
toArray
public byte[] toArray(boolean clear) -
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)
-