Package dev.resteasy.client.util.common
Class ByteStringBuilder
- java.lang.Object
-
- dev.resteasy.client.util.common.ByteStringBuilder
-
public final class ByteStringBuilder extends Object
This builder is not thread-safe.- Author:
- David M. Lloyd, James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description ByteStringBuilder(int len)
-
Method Summary
-
-
-
Method Detail
-
append
public ByteStringBuilder append(boolean b)
-
append
public ByteStringBuilder append(char c)
-
getUtf8LengthOf
public static int getUtf8LengthOf(int c)
-
appendUtf8Raw
public ByteStringBuilder appendUtf8Raw(int codePoint)
-
append
public ByteStringBuilder append(byte[] bytes)
-
append
public ByteStringBuilder append(byte[] bytes, int offs, int len)
-
appendUSASCII
public ByteStringBuilder appendUSASCII(String s)
-
appendUSASCII
public ByteStringBuilder appendUSASCII(String s, int maxLen)
-
appendUSASCII
public ByteStringBuilder appendUSASCII(String s, int offs, int len)
-
appendLatin1
public ByteStringBuilder appendLatin1(String s)
-
appendLatin1
public ByteStringBuilder appendLatin1(String s, int offs, int len)
-
append
public ByteStringBuilder append(String s)
-
append
public ByteStringBuilder append(String s, int offs, int len)
-
write
public int write(String s, int limit)
-
append
public ByteStringBuilder append(int i)
-
append
public ByteStringBuilder append(long l)
-
append
public ByteStringBuilder append(ByteStringBuilder other)
-
append
public ByteStringBuilder append(Object value)
-
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)
-
-