Class ByteStringBuilder
java.lang.Object
dev.resteasy.client.util.common.ByteStringBuilder
-
Constructor Summary
-
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) byte
byteAt
(int index) int
capacity()
boolean
contentEquals
(byte[] other) boolean
contentEquals
(byte[] other, int offs, int length) static int
getUtf8LengthOf
(int c) int
length()
void
setLength
(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)
-