public final class ByteBuffer
extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
private byte[] |
buffer |
private int |
length |
private int |
offset |
Constructor and Description |
---|
ByteBuffer() |
ByteBuffer(byte[] bb) |
ByteBuffer(int initLength) |
ByteBuffer(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
append(byte b) |
ByteBuffer |
append(byte[] bb) |
ByteBuffer |
append(byte[] bb,
int of,
int le) |
ByteBuffer |
append(char b) |
ByteBuffer |
append(int i) |
ByteBuffer |
append(java.lang.String s) |
byte |
byteAt(int pos) |
void |
clear() |
static boolean |
contains(java.util.Collection<byte[]> collection,
byte[] key) |
void |
copyTo(byte[] otherArray,
int offset) |
static boolean |
equals(byte[] buffer,
byte[] pattern) |
static boolean |
equals(byte[] b0,
int off0,
byte[] b1,
int off1,
int length) |
byte[] |
getBytes() |
private byte[] |
getBytes(int start) |
byte[] |
getBytes(int start,
int len) |
private void |
grow() |
int |
indexOf(byte[] bs,
int start) |
boolean |
isEmpty() |
int |
length() |
static int |
remove(java.util.Collection<byte[]> collection,
byte[] key) |
static java.util.List<byte[]> |
split(byte[] b,
byte s) |
boolean |
startsWith(byte[] bs,
int start) |
java.lang.String |
toString() |
java.lang.String |
toString(int left,
int length) |
java.lang.StringBuilder |
toStringBuilder(int left,
int length,
int sblength) |
ByteBuffer |
trim(int start) |
ByteBuffer |
trim(int start,
int len) |
private void |
write(byte b) |
void |
write(byte[] bb) |
void |
write(byte[] bb,
int of,
int le) |
void |
write(char b) |
void |
write(int b) |
void |
writeTo(java.io.OutputStream dest) |
public ByteBuffer()
public ByteBuffer(int initLength)
public ByteBuffer(byte[] bb)
public ByteBuffer(java.lang.String s)
public void clear()
public int length()
public boolean isEmpty()
private void grow()
public void write(int b)
write
in class java.io.OutputStream
public void write(char b)
private void write(byte b)
public void write(byte[] bb)
write
in class java.io.OutputStream
public void write(byte[] bb, int of, int le)
write
in class java.io.OutputStream
public ByteBuffer append(byte b)
public ByteBuffer append(char b)
public ByteBuffer append(int i)
public ByteBuffer append(byte[] bb)
public ByteBuffer append(byte[] bb, int of, int le)
public ByteBuffer append(java.lang.String s)
public byte byteAt(int pos)
public int indexOf(byte[] bs, int start)
public boolean startsWith(byte[] bs, int start)
public byte[] getBytes()
private byte[] getBytes(int start)
public byte[] getBytes(int start, int len)
public void copyTo(byte[] otherArray, int offset)
public ByteBuffer trim(int start)
public ByteBuffer trim(int start, int len)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int left, int length)
public java.lang.StringBuilder toStringBuilder(int left, int length, int sblength)
public static boolean equals(byte[] buffer, byte[] pattern)
public static boolean equals(byte[] b0, int off0, byte[] b1, int off1, int length)
public void writeTo(java.io.OutputStream dest) throws java.io.IOException
java.io.IOException
public static boolean contains(java.util.Collection<byte[]> collection, byte[] key)
public static int remove(java.util.Collection<byte[]> collection, byte[] key)
public static java.util.List<byte[]> split(byte[] b, byte s)