public class Buffer extends Object implements Comparable<Buffer>
Constructor and Description |
---|
Buffer(Buffer other) |
Buffer(byte[] data) |
Buffer(byte[] data,
int offset,
int length) |
Buffer(String value)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
byte |
byteAt(int i) |
Buffer |
compact() |
int |
compareTo(Buffer o) |
boolean |
contains(byte value) |
boolean |
equals(Buffer obj) |
boolean |
equals(Object obj) |
byte[] |
getData() |
int |
getLength() |
int |
getOffset() |
int |
hashCode() |
int |
indexOf(byte value,
int pos) |
boolean |
isEmpty() |
static Buffer |
join(List<Buffer> items,
Buffer seperator) |
BufferInputStream |
newInput() |
BufferOutputStream |
newOutput() |
Buffer |
slice(int low,
int high) |
byte[] |
toByteArray() |
String |
toStringUtf8()
Deprecated.
|
public final byte[] data
public final int offset
public final int length
public Buffer(Buffer other)
public Buffer(byte[] data)
public Buffer(byte[] data, int offset, int length)
@Deprecated public Buffer(String value)
public final Buffer slice(int low, int high)
public final byte[] getData()
public final int getLength()
public final int getOffset()
public Buffer compact()
public final byte[] toByteArray()
public byte byteAt(int i)
public final boolean equals(Buffer obj)
public final BufferInputStream newInput()
public final BufferOutputStream newOutput()
public final boolean isEmpty()
public final boolean contains(byte value)
public final int indexOf(byte value, int pos)
@Deprecated public String toStringUtf8()
public int compareTo(Buffer o)
compareTo
in interface Comparable<Buffer>
Copyright © 2018 The Apache Software Foundation. All rights reserved.