public class VertxBufferImpl extends Object implements io.vertx.core.buffer.Buffer
| Constructor and Description |
|---|
VertxBufferImpl(io.netty.buffer.ByteBuf buffer) |
| Modifier and Type | Method and Description |
|---|---|
io.vertx.core.buffer.Buffer |
appendBuffer(io.vertx.core.buffer.Buffer buff) |
io.vertx.core.buffer.Buffer |
appendBuffer(io.vertx.core.buffer.Buffer buff,
int offset,
int len) |
io.vertx.core.buffer.Buffer |
appendByte(byte b) |
io.vertx.core.buffer.Buffer |
appendBytes(byte[] bytes) |
io.vertx.core.buffer.Buffer |
appendBytes(byte[] bytes,
int offset,
int len) |
io.vertx.core.buffer.Buffer |
appendDouble(double d) |
io.vertx.core.buffer.Buffer |
appendFloat(float f) |
io.vertx.core.buffer.Buffer |
appendInt(int i) |
io.vertx.core.buffer.Buffer |
appendIntLE(int i) |
io.vertx.core.buffer.Buffer |
appendLong(long l) |
io.vertx.core.buffer.Buffer |
appendLongLE(long l) |
io.vertx.core.buffer.Buffer |
appendMedium(int i) |
io.vertx.core.buffer.Buffer |
appendMediumLE(int i) |
io.vertx.core.buffer.Buffer |
appendShort(short s) |
io.vertx.core.buffer.Buffer |
appendShortLE(short s) |
io.vertx.core.buffer.Buffer |
appendString(String str) |
io.vertx.core.buffer.Buffer |
appendString(String str,
String enc) |
io.vertx.core.buffer.Buffer |
appendUnsignedByte(short b) |
io.vertx.core.buffer.Buffer |
appendUnsignedInt(long i) |
io.vertx.core.buffer.Buffer |
appendUnsignedIntLE(long i) |
io.vertx.core.buffer.Buffer |
appendUnsignedShort(int s) |
io.vertx.core.buffer.Buffer |
appendUnsignedShortLE(int s) |
io.vertx.core.buffer.Buffer |
copy() |
boolean |
equals(Object o) |
io.vertx.core.buffer.Buffer |
getBuffer(int start,
int end) |
byte |
getByte(int pos) |
io.netty.buffer.ByteBuf |
getByteBuf() |
byte[] |
getBytes() |
io.vertx.core.buffer.Buffer |
getBytes(byte[] dst) |
io.vertx.core.buffer.Buffer |
getBytes(byte[] dst,
int dstIndex) |
byte[] |
getBytes(int start,
int end) |
io.vertx.core.buffer.Buffer |
getBytes(int start,
int end,
byte[] dst) |
io.vertx.core.buffer.Buffer |
getBytes(int start,
int end,
byte[] dst,
int dstIndex) |
double |
getDouble(int pos) |
float |
getFloat(int pos) |
int |
getInt(int pos) |
int |
getIntLE(int pos) |
long |
getLong(int pos) |
long |
getLongLE(int pos) |
int |
getMedium(int pos) |
int |
getMediumLE(int pos) |
short |
getShort(int pos) |
short |
getShortLE(int pos) |
String |
getString(int start,
int end) |
String |
getString(int start,
int end,
String enc) |
short |
getUnsignedByte(int pos) |
long |
getUnsignedInt(int pos) |
long |
getUnsignedIntLE(int pos) |
int |
getUnsignedMedium(int pos) |
int |
getUnsignedMediumLE(int pos) |
int |
getUnsignedShort(int pos) |
int |
getUnsignedShortLE(int pos) |
int |
hashCode() |
int |
length() |
int |
readFromBuffer(int pos,
io.vertx.core.buffer.Buffer buffer) |
io.vertx.core.buffer.Buffer |
setBuffer(int pos,
io.vertx.core.buffer.Buffer b) |
io.vertx.core.buffer.Buffer |
setBuffer(int pos,
io.vertx.core.buffer.Buffer b,
int offset,
int len) |
io.vertx.core.buffer.Buffer |
setByte(int pos,
byte b) |
io.vertx.core.buffer.Buffer |
setBytes(int pos,
byte[] b) |
io.vertx.core.buffer.Buffer |
setBytes(int pos,
byte[] b,
int offset,
int len) |
VertxBufferImpl |
setBytes(int pos,
ByteBuffer b) |
io.vertx.core.buffer.Buffer |
setDouble(int pos,
double d) |
io.vertx.core.buffer.Buffer |
setFloat(int pos,
float f) |
io.vertx.core.buffer.Buffer |
setInt(int pos,
int i) |
io.vertx.core.buffer.Buffer |
setIntLE(int pos,
int i) |
io.vertx.core.buffer.Buffer |
setLong(int pos,
long l) |
io.vertx.core.buffer.Buffer |
setLongLE(int pos,
long l) |
io.vertx.core.buffer.Buffer |
setMedium(int pos,
int i) |
io.vertx.core.buffer.Buffer |
setMediumLE(int pos,
int i) |
io.vertx.core.buffer.Buffer |
setShort(int pos,
short s) |
io.vertx.core.buffer.Buffer |
setShortLE(int pos,
short s) |
io.vertx.core.buffer.Buffer |
setString(int pos,
String str) |
io.vertx.core.buffer.Buffer |
setString(int pos,
String str,
String enc) |
io.vertx.core.buffer.Buffer |
setUnsignedByte(int pos,
short b) |
io.vertx.core.buffer.Buffer |
setUnsignedInt(int pos,
long i) |
io.vertx.core.buffer.Buffer |
setUnsignedIntLE(int pos,
long i) |
io.vertx.core.buffer.Buffer |
setUnsignedShort(int pos,
int s) |
io.vertx.core.buffer.Buffer |
setUnsignedShortLE(int pos,
int s) |
io.vertx.core.buffer.Buffer |
slice() |
io.vertx.core.buffer.Buffer |
slice(int start,
int end) |
io.vertx.core.json.JsonArray |
toJsonArray() |
io.vertx.core.json.JsonObject |
toJsonObject() |
String |
toString() |
String |
toString(Charset enc) |
String |
toString(String enc) |
void |
writeToBuffer(io.vertx.core.buffer.Buffer buff) |
public String toString()
public String toString(String enc)
toString in interface io.vertx.core.buffer.Bufferpublic String toString(Charset enc)
toString in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.json.JsonObject toJsonObject()
toJsonObject in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.json.JsonArray toJsonArray()
toJsonArray in interface io.vertx.core.buffer.Bufferpublic byte getByte(int pos)
getByte in interface io.vertx.core.buffer.Bufferpublic short getUnsignedByte(int pos)
getUnsignedByte in interface io.vertx.core.buffer.Bufferpublic int getInt(int pos)
getInt in interface io.vertx.core.buffer.Bufferpublic int getIntLE(int pos)
getIntLE in interface io.vertx.core.buffer.Bufferpublic long getUnsignedInt(int pos)
getUnsignedInt in interface io.vertx.core.buffer.Bufferpublic long getUnsignedIntLE(int pos)
getUnsignedIntLE in interface io.vertx.core.buffer.Bufferpublic long getLong(int pos)
getLong in interface io.vertx.core.buffer.Bufferpublic long getLongLE(int pos)
getLongLE in interface io.vertx.core.buffer.Bufferpublic double getDouble(int pos)
getDouble in interface io.vertx.core.buffer.Bufferpublic float getFloat(int pos)
getFloat in interface io.vertx.core.buffer.Bufferpublic short getShort(int pos)
getShort in interface io.vertx.core.buffer.Bufferpublic short getShortLE(int pos)
getShortLE in interface io.vertx.core.buffer.Bufferpublic int getUnsignedShort(int pos)
getUnsignedShort in interface io.vertx.core.buffer.Bufferpublic int getUnsignedShortLE(int pos)
getUnsignedShortLE in interface io.vertx.core.buffer.Bufferpublic int getMedium(int pos)
getMedium in interface io.vertx.core.buffer.Bufferpublic int getMediumLE(int pos)
getMediumLE in interface io.vertx.core.buffer.Bufferpublic int getUnsignedMedium(int pos)
getUnsignedMedium in interface io.vertx.core.buffer.Bufferpublic int getUnsignedMediumLE(int pos)
getUnsignedMediumLE in interface io.vertx.core.buffer.Bufferpublic byte[] getBytes()
getBytes in interface io.vertx.core.buffer.Bufferpublic byte[] getBytes(int start,
int end)
getBytes in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer getBytes(byte[] dst)
getBytes in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer getBytes(byte[] dst,
int dstIndex)
getBytes in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer getBytes(int start,
int end,
byte[] dst)
getBytes in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer getBytes(int start,
int end,
byte[] dst,
int dstIndex)
getBytes in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer getBuffer(int start,
int end)
getBuffer in interface io.vertx.core.buffer.Bufferpublic String getString(int start, int end, String enc)
getString in interface io.vertx.core.buffer.Bufferpublic String getString(int start, int end)
getString in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendBuffer(io.vertx.core.buffer.Buffer buff)
appendBuffer in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendBuffer(io.vertx.core.buffer.Buffer buff,
int offset,
int len)
appendBuffer in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendBytes(byte[] bytes)
appendBytes in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendBytes(byte[] bytes,
int offset,
int len)
appendBytes in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendByte(byte b)
appendByte in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendUnsignedByte(short b)
appendUnsignedByte in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendInt(int i)
appendInt in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendIntLE(int i)
appendIntLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendUnsignedInt(long i)
appendUnsignedInt in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendUnsignedIntLE(long i)
appendUnsignedIntLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendMedium(int i)
appendMedium in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendMediumLE(int i)
appendMediumLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendLong(long l)
appendLong in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendLongLE(long l)
appendLongLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendShort(short s)
appendShort in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendShortLE(short s)
appendShortLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendUnsignedShort(int s)
appendUnsignedShort in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendUnsignedShortLE(int s)
appendUnsignedShortLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendFloat(float f)
appendFloat in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendDouble(double d)
appendDouble in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendString(String str, String enc)
appendString in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer appendString(String str)
appendString in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setByte(int pos,
byte b)
setByte in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setUnsignedByte(int pos,
short b)
setUnsignedByte in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setInt(int pos,
int i)
setInt in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setIntLE(int pos,
int i)
setIntLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setUnsignedInt(int pos,
long i)
setUnsignedInt in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setUnsignedIntLE(int pos,
long i)
setUnsignedIntLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setMedium(int pos,
int i)
setMedium in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setMediumLE(int pos,
int i)
setMediumLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setLong(int pos,
long l)
setLong in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setLongLE(int pos,
long l)
setLongLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setDouble(int pos,
double d)
setDouble in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setFloat(int pos,
float f)
setFloat in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setShort(int pos,
short s)
setShort in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setShortLE(int pos,
short s)
setShortLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setUnsignedShort(int pos,
int s)
setUnsignedShort in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setUnsignedShortLE(int pos,
int s)
setUnsignedShortLE in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setBuffer(int pos,
io.vertx.core.buffer.Buffer b)
setBuffer in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setBuffer(int pos,
io.vertx.core.buffer.Buffer b,
int offset,
int len)
setBuffer in interface io.vertx.core.buffer.Bufferpublic VertxBufferImpl setBytes(int pos, ByteBuffer b)
setBytes in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setBytes(int pos,
byte[] b)
setBytes in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setBytes(int pos,
byte[] b,
int offset,
int len)
setBytes in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setString(int pos,
String str)
setString in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer setString(int pos,
String str,
String enc)
setString in interface io.vertx.core.buffer.Bufferpublic int length()
length in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer copy()
copy in interface io.vertx.core.buffer.Buffercopy in interface io.vertx.core.shareddata.Shareablepublic io.vertx.core.buffer.Buffer slice()
slice in interface io.vertx.core.buffer.Bufferpublic io.vertx.core.buffer.Buffer slice(int start,
int end)
slice in interface io.vertx.core.buffer.Bufferpublic io.netty.buffer.ByteBuf getByteBuf()
getByteBuf in interface io.vertx.core.buffer.Bufferpublic void writeToBuffer(io.vertx.core.buffer.Buffer buff)
writeToBuffer in interface io.vertx.core.shareddata.impl.ClusterSerializablepublic int readFromBuffer(int pos,
io.vertx.core.buffer.Buffer buffer)
readFromBuffer in interface io.vertx.core.shareddata.impl.ClusterSerializableCopyright © 2020 JBoss by Red Hat. All rights reserved.