public final class ByteArrayBuilder extends Object
| Constructor and Description | 
|---|
| ByteArrayBuilder() | 
| ByteArrayBuilder(int initialCapacity) | 
| Modifier and Type | Method and Description | 
|---|---|
| ByteArrayBuilder | append(byte[] b) | 
| ByteArrayBuilder | append(byte[] b,
      int off,
      int len) | 
| ByteArrayBuilder | append(char[] b) | 
| ByteArrayBuilder | append(char[] b,
      int off,
      int len) | 
| ByteArrayBuilder | append(CharBuffer charBuffer) | 
| ByteArrayBuilder | append(String s) | 
| int | capacity() | 
| ByteArrayBuilder | charset(Charset charset) | 
| void | ensureFreeCapacity(int freeCapacity) | 
| void | reset() | 
| byte[] | toByteArray() | 
| ByteBuffer | toByteBuffer() | 
| String | toString() | 
public ByteArrayBuilder()
public ByteArrayBuilder(int initialCapacity)
public int capacity()
public void ensureFreeCapacity(int freeCapacity)
public ByteArrayBuilder charset(Charset charset)
public ByteArrayBuilder append(byte[] b, int off, int len)
public ByteArrayBuilder append(byte[] b)
public ByteArrayBuilder append(CharBuffer charBuffer)
public ByteArrayBuilder append(char[] b, int off, int len)
public ByteArrayBuilder append(char[] b)
public ByteArrayBuilder append(String s)
public ByteBuffer toByteBuffer()
public byte[] toByteArray()
public void reset()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.