Package one.nio.util
Class ByteArrayBuilder
java.lang.Object
one.nio.util.ByteArrayBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ByteArrayBuilderappend(boolean b) final ByteArrayBuilderappend(byte b) final ByteArrayBuilderappend(byte[] b) final ByteArrayBuilderappend(byte[] b, int offset, int length) final ByteArrayBuilderappend(char c) final ByteArrayBuilderappend(int n) final ByteArrayBuilderappend(long n) final ByteArrayBuilderfinal ByteArrayBuilderappend(ByteBuffer bb, int length) final ByteArrayBuilderappendCodePoint(int c) final ByteArrayBuilderappendHex(int n) final ByteArrayBuilderappendHex(long n) final byte[]buffer()final bytebyteAt(int index) final intcapacity()final voidcrop(int offset) final intlength()final voidsetLength(int newCount) final byte[]toBytes()final StringtoString()final byte[]trim()
-
Field Details
-
TRUE
protected static final byte[] TRUE -
FALSE
protected static final byte[] FALSE -
buf
protected byte[] buf -
count
protected int count
-
-
Constructor Details
-
ByteArrayBuilder
public ByteArrayBuilder() -
ByteArrayBuilder
public ByteArrayBuilder(int capacity)
-
-
Method Details
-
buffer
public final byte[] buffer() -
length
public final int length() -
setLength
public final void setLength(int newCount) -
capacity
public final int capacity() -
byteAt
public final byte byteAt(int index) -
crop
public final void crop(int offset) -
trim
public final byte[] trim() -
toBytes
public final byte[] toBytes() -
toString
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
appendCodePoint
-
appendHex
-
appendHex
-